Class: HTML2TeX::BasicProcessor
- Inherits:
-
Object
- Object
- HTML2TeX::BasicProcessor
- Includes:
- TeX
- Defined in:
- lib/html2tex/basic_processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#scanner ⇒ Object
readonly
Returns the value of attribute scanner.
Instance Method Summary collapse
-
#initialize(scanner, options) ⇒ BasicProcessor
constructor
A new instance of BasicProcessor.
- #to_tex(buffer = "") ⇒ Object
Methods included from TeX
Constructor Details
#initialize(scanner, options) ⇒ BasicProcessor
Returns a new instance of BasicProcessor.
9 10 11 12 13 |
# File 'lib/html2tex/basic_processor.rb', line 9 def initialize(scanner, ) @decoder = HTMLEntities.new @scanner = scanner @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/html2tex/basic_processor.rb', line 7 def @options end |
#scanner ⇒ Object (readonly)
Returns the value of attribute scanner.
7 8 9 |
# File 'lib/html2tex/basic_processor.rb', line 7 def scanner @scanner end |
Instance Method Details
#to_tex(buffer = "") ⇒ Object
15 16 17 18 19 20 |
# File 'lib/html2tex/basic_processor.rb', line 15 def to_tex(buffer="") while n = next_element buffer << n end buffer end |