Class: Hotchoc::Base
- Inherits:
-
Object
- Object
- Hotchoc::Base
- Defined in:
- lib/hotchoc/base.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Instance Method Summary collapse
-
#initialize(item = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(item = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/hotchoc/base.rb', line 5 def initialize(item = {}) @item = item end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
3 4 5 |
# File 'lib/hotchoc/base.rb', line 3 def item @item end |