Class: Fat::TableParseFixture

Inherits:
Fit::ColumnFixture show all
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

Attributes inherited from Fit::Fixture

#args, #counts, #listener, #summary

Instance Method Summary collapse

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

#columnObject

Returns the value of attribute column.



9
10
11
# File 'lib/fat/table_parse_fixture.rb', line 9

def column
  @column
end

#htmlObject

Returns the value of attribute html.



9
10
11
# File 'lib/fat/table_parse_fixture.rb', line 9

def html
  @html
end

#rowObject

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

#cellObject



22
23
24
# File 'lib/fat/table_parse_fixture.rb', line 22

def cell
  row.at 0, @column - 1
end

#cell_bodyObject



10
11
12
# File 'lib/fat/table_parse_fixture.rb', line 10

def cell_body
  cell.body
end

#cell_tagObject



13
14
15
# File 'lib/fat/table_parse_fixture.rb', line 13

def cell_tag
  cell.tag
end

#row_tagObject



16
17
18
# File 'lib/fat/table_parse_fixture.rb', line 16

def row_tag
  row.tag
end

#tableObject



28
29
30
# File 'lib/fat/table_parse_fixture.rb', line 28

def table
  Fit::Parse.new(@html)
end

#table_tagObject



19
20
21
# File 'lib/fat/table_parse_fixture.rb', line 19

def table_tag
  table.tag
end