Class: Yummi::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/yummi.rb

Direct Known Subclasses

TableContext

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objObject (readonly)

Returns the value of attribute obj.



170
171
172
# File 'lib/yummi.rb', line 170

def obj
  @obj
end

#valueObject (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