Class: Wee::LRUCache::Item
Instance Attribute Summary collapse
-
#time ⇒ Object
Returns the value of attribute time.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Methods included from StructSnapshotMixin
#restore_snapshot, #take_snapshot
Instance Attribute Details
#time ⇒ Object
Returns the value of attribute time
7 8 9 |
# File 'lib/wee/lru_cache.rb', line 7 def time @time end |
#value ⇒ Object
Returns the value of attribute value
7 8 9 |
# File 'lib/wee/lru_cache.rb', line 7 def value @value end |
Instance Method Details
#<=>(other) ⇒ Object
8 9 10 |
# File 'lib/wee/lru_cache.rb', line 8 def <=>(other) self.time <=> other.time end |