module
Circed::Core::Repository(T)
Overview
Base repository interface for managing entities
Included Modules
- Enumerable(T)
Direct including types
Defined in:
circed/core/interfaces.crInstance Method Summary
- #[]=(id : String, entity : T) : T
- #[]?(id : String) : T | Nil
- #clear : Nil
- #delete(id : String) : T | Nil
-
#each(& : T -> ) : Nil
Must yield this collection's elements to the block.
-
#size : Int32
Returns the number of elements in the collection.
Instance Method Detail
abstract
def each(& : T -> ) : Nil
#
Description copied from module Enumerable(T)
Must yield this collection's elements to the block.
abstract
def size : Int32
#
Description copied from module Enumerable(T)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4