Class: GreenPepper::ExampleContext

Inherits:
Object
  • Object
show all
Defined in:
lib/greenpepper/context/htmlcontext.rb

Direct Known Subclasses

HtmlContext

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject

Returns the value of attribute index.



9
10
11
# File 'lib/greenpepper/context/htmlcontext.rb', line 9

def index
  @index
end