Class: Html2record::Parser::Base
- Inherits:
-
Object
- Object
- Html2record::Parser::Base
- Defined in:
- lib/html2record/parser.rb
Class Attribute Summary collapse
-
.parsers ⇒ Object
Returns the value of attribute parsers.
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Class Attribute Details
.parsers ⇒ Object
Returns the value of attribute parsers.
9 10 11 |
# File 'lib/html2record/parser.rb', line 9 def parsers @parsers end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
6 7 8 |
# File 'lib/html2record/parser.rb', line 6 def uri @uri end |
Class Method Details
.add(column, selector, &block) ⇒ Object
10 11 12 13 |
# File 'lib/html2record/parser.rb', line 10 def add(column,selector,&block) @parsers ||= Array.new @parsers << {:column=>column,:selector=>selector, :block=>block} end |