Class: MemDB::Entries
- Inherits:
-
Object
- Object
- MemDB::Entries
- Defined in:
- lib/mem_db.rb
Defined Under Namespace
Classes: Entry
Instance Method Summary collapse
- #[](id) ⇒ Object
- #add(matching, value) ⇒ Object
-
#initialize ⇒ Entries
constructor
A new instance of Entries.
Constructor Details
#initialize ⇒ Entries
Returns a new instance of Entries.
20 21 22 |
# File 'lib/mem_db.rb', line 20 def initialize @entries = [] end |
Instance Method Details
#[](id) ⇒ Object
24 25 26 |
# File 'lib/mem_db.rb', line 24 def [](id) @entries[id] end |