Class: HTML2TeX::NullProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/html2tex/null_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @scanner = scanner
  @end_on  = end_on
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/html2tex/null_processor.rb', line 3

def options
  @options
end

#scannerObject (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