Class: EaseEngine::Data::Record
Direct Known Subclasses
Instance Method Summary collapse
- #add(data) ⇒ Object
-
#initialize(min, max) ⇒ Record
constructor
A new instance of Record.
Methods inherited from Hary
#each, #get, #get_at, #key?, #remove, #remove_at, #size, #sort!, #update
Constructor Details
#initialize(min, max) ⇒ Record
Returns a new instance of Record.
83 84 85 86 87 88 89 |
# File 'lib/ease_engine/data.rb', line 83 def initialize( min, max ) @min = min @max = max @id = min super() end |
Instance Method Details
#add(data) ⇒ Object
91 92 93 94 95 96 |
# File 'lib/ease_engine/data.rb', line 91 def add( data ) @id = generate_id( @id ) return 0 if 0 == @id super( @id, data ) end |