Class: Fat::TableParseFixture
- Inherits:
-
Fit::ColumnFixture
- Object
- Fit::Fixture
- Fit::ColumnFixture
- Fat::TableParseFixture
- Defined in:
- lib/fat/table_parse_fixture.rb
Constant Summary
Constants inherited from Fit::Fixture
Fit::Fixture::GRAY, Fit::Fixture::GREEN, Fit::Fixture::RED, Fit::Fixture::YELLOW
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#html ⇒ Object
Returns the value of attribute html.
-
#row ⇒ Object
Returns the value of attribute row.
Attributes inherited from Fit::Fixture
#args, #counts, #listener, #summary
Instance Method Summary collapse
- #cell ⇒ Object
- #cell_body ⇒ Object
- #cell_tag ⇒ Object
- #row_tag ⇒ Object
- #table ⇒ Object
- #table_tag ⇒ Object
Methods inherited from Fit::ColumnFixture
#check, #do_cell, #do_row, #do_rows, #execute, #reset
Methods inherited from Fit::Fixture
camel, #check, #do_cell, #do_cells, #do_row, #do_rows, #do_table, #do_tables, #error, escape, #exception, #find_class, #fixture_name, #get_args_for_table, #get_linked_fixture_with_args, gray, #ignore, #info, #initialize, #interpret_following_tables, #interpret_tables, label, metadata, #parse, #right, #total_errors, #totals, #wrong
Constructor Details
This class inherits a constructor from Fit::Fixture
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
9 10 11 |
# File 'lib/fat/table_parse_fixture.rb', line 9 def column @column end |
#html ⇒ Object
Returns the value of attribute html.
9 10 11 |
# File 'lib/fat/table_parse_fixture.rb', line 9 def html @html end |
#row ⇒ Object
Returns the value of attribute row.
9 10 11 |
# File 'lib/fat/table_parse_fixture.rb', line 9 def row @row end |
Instance Method Details
#cell ⇒ Object
22 23 24 |
# File 'lib/fat/table_parse_fixture.rb', line 22 def cell row.at 0, @column - 1 end |
#cell_body ⇒ Object
10 11 12 |
# File 'lib/fat/table_parse_fixture.rb', line 10 def cell_body cell.body end |
#cell_tag ⇒ Object
13 14 15 |
# File 'lib/fat/table_parse_fixture.rb', line 13 def cell_tag cell.tag end |
#row_tag ⇒ Object
16 17 18 |
# File 'lib/fat/table_parse_fixture.rb', line 16 def row_tag row.tag end |
#table ⇒ Object
28 29 30 |
# File 'lib/fat/table_parse_fixture.rb', line 28 def table Fit::Parse.new(@html) end |
#table_tag ⇒ Object
19 20 21 |
# File 'lib/fat/table_parse_fixture.rb', line 19 def table_tag table.tag end |