Class: SpielplanSaar::TableParser
- Inherits:
-
Object
- Object
- SpielplanSaar::TableParser
- Defined in:
- lib/spielplan_saar/table_parser.rb
Instance Attribute Summary collapse
-
#html_content ⇒ Object
readonly
Returns the value of attribute html_content.
Instance Method Summary collapse
-
#initialize(html_content) ⇒ TableParser
constructor
A new instance of TableParser.
- #parse ⇒ Object
Constructor Details
#initialize(html_content) ⇒ TableParser
Returns a new instance of TableParser.
7 8 9 |
# File 'lib/spielplan_saar/table_parser.rb', line 7 def initialize(html_content) @html_content = html_content end |
Instance Attribute Details
#html_content ⇒ Object (readonly)
Returns the value of attribute html_content.
5 6 7 |
# File 'lib/spielplan_saar/table_parser.rb', line 5 def html_content @html_content end |
Instance Method Details
#parse ⇒ Object
11 12 13 14 15 |
# File 'lib/spielplan_saar/table_parser.rb', line 11 def parse table_row_nodes.collect do |row_node| TableEntry.parse(row_node) end end |