Class: Yummi::Context
- Inherits:
-
Object
- Object
- Yummi::Context
- Defined in:
- lib/yummi.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #[](index) ⇒ Object
-
#initialize(value) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(value) ⇒ Context
Returns a new instance of Context.
172 173 174 |
# File 'lib/yummi.rb', line 172 def initialize (value) @value = value end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
170 171 172 |
# File 'lib/yummi.rb', line 170 def obj @obj end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
170 171 172 |
# File 'lib/yummi.rb', line 170 def value @value end |
Instance Method Details
#[](index) ⇒ Object
176 177 178 |
# File 'lib/yummi.rb', line 176 def [] (index) obj[index] end |