Class: HTML2TeX::NullProcessor
- Inherits:
-
Object
- Object
- HTML2TeX::NullProcessor
- Defined in:
- lib/html2tex/null_processor.rb
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, end_on, options) ⇒ NullProcessor
constructor
A new instance of NullProcessor.
- #to_tex(buffer = "") ⇒ Object
Constructor Details
#initialize(scanner, end_on, options) ⇒ NullProcessor
Returns a new instance of NullProcessor.
5 6 7 8 9 |
# File 'lib/html2tex/null_processor.rb', line 5 def initialize(scanner, end_on, ) @scanner = scanner @end_on = end_on @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/html2tex/null_processor.rb', line 3 def @options end |
#scanner ⇒ Object (readonly)
Returns the value of attribute scanner.
3 4 5 |
# File 'lib/html2tex/null_processor.rb', line 3 def scanner @scanner end |
Instance Method Details
#to_tex(buffer = "") ⇒ Object
11 12 13 14 |
# File 'lib/html2tex/null_processor.rb', line 11 def to_tex(buffer="") scanner.scan(%r{.*?#{Regexp.escape(@end_on)}}im) "" end |