module

Circed::Core::Repository(T)

Inherits Enumerable

Base repository interface for managing entities

Instance methods

[]=(id : String, entity : T) : T
Source
[]?(id : String) : T | Nil
Source
clear
Source
delete(id : String) : T | Nil
Source
each

Must yield this collection's elements to the block.

Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source