Class: HTML2AsciiMath::HTMLParser
- Inherits:
-
Nokogiri::HTML::SAX::Parser
- Object
- Nokogiri::HTML::SAX::Parser
- HTML2AsciiMath::HTMLParser
- Extended by:
- Forwardable
- Defined in:
- lib/html2asciimath/html_parser.rb
Defined Under Namespace
Classes: SAXCallbacks
Instance Attribute Summary collapse
-
#converter ⇒ Object
readonly
Returns the value of attribute converter.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(str, converter) ⇒ HTMLParser
constructor
A new instance of HTMLParser.
- #parse ⇒ Object
Constructor Details
#initialize(str, converter) ⇒ HTMLParser
Returns a new instance of HTMLParser.
16 17 18 19 20 |
# File 'lib/html2asciimath/html_parser.rb', line 16 def initialize(str, converter) super(SAXCallbacks.new(self)) @string = str @converter = converter end |
Instance Attribute Details
#converter ⇒ Object (readonly)
Returns the value of attribute converter.
12 13 14 |
# File 'lib/html2asciimath/html_parser.rb', line 12 def converter @converter end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
12 13 14 |
# File 'lib/html2asciimath/html_parser.rb', line 12 def string @string end |
Instance Method Details
#parse ⇒ Object
22 23 24 |
# File 'lib/html2asciimath/html_parser.rb', line 22 def parse super(string) end |