Class: GreenPepper::ExampleContext
- Inherits:
-
Object
- Object
- GreenPepper::ExampleContext
- Defined in:
- lib/greenpepper/context/htmlcontext.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(index = 0) ⇒ ExampleContext
constructor
A new instance of ExampleContext.
Constructor Details
#initialize(index = 0) ⇒ ExampleContext
Returns a new instance of ExampleContext.
11 12 13 |
# File 'lib/greenpepper/context/htmlcontext.rb', line 11 def initialize(index = 0) @index = index end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
9 10 11 |
# File 'lib/greenpepper/context/htmlcontext.rb', line 9 def index @index end |