Class: AmsLayout::Parser
- Inherits:
-
Object
show all
- Defined in:
- lib/ams_layout/parser.rb
Defined Under Namespace
Classes: Control, NullControl
Instance Method Summary
collapse
Instance Method Details
#layout ⇒ Object
16
17
18
|
# File 'lib/ams_layout/parser.rb', line 16
def layout
@layout ||= {}
end
|
#parse(html) ⇒ Object
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/ams_layout/parser.rb', line 20
def parse html
Nokogiri::HTML(html).css("table#ctl00_ContentPlaceHolder1_tblMain").each do |tbl|
tbl.css('tr').each do |row|
parse_row row
end
end
layout
end
|