Class: GreenPepper::HtmlContext

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

Instance Attribute Summary collapse

Attributes inherited from ExampleContext

#index

Instance Method Summary collapse

Constructor Details

#initialize(index = 0, first_table_index = 0, nb_table = 1) ⇒ HtmlContext

Returns a new instance of HtmlContext.



19
20
21
22
23
# File 'lib/greenpepper/context/htmlcontext.rb', line 19

def initialize(index = 0, first_table_index = 0, nb_table = 1)
  super(index)
  @first_table_index = first_table_index
  @nb_table = nb_table
end

Instance Attribute Details

#first_table_indexObject

Returns the value of attribute first_table_index.



17
18
19
# File 'lib/greenpepper/context/htmlcontext.rb', line 17

def first_table_index
  @first_table_index
end

#nb_tableObject

Returns the value of attribute nb_table.



17
18
19
# File 'lib/greenpepper/context/htmlcontext.rb', line 17

def nb_table
  @nb_table
end