Class: DummyObject
Overview
A simple dummy object that responds to #id
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ DummyObject
constructor
A new instance of DummyObject.
Constructor Details
#initialize(id) ⇒ DummyObject
Returns a new instance of DummyObject.
81 82 83 |
# File 'lib/block_cache.rb', line 81 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
79 80 81 |
# File 'lib/block_cache.rb', line 79 def id @id end |