Class: HTML2TeX::HeadingProcessor

Inherits:
BasicProcessor show all
Defined in:
lib/html2tex/heading_processor.rb

Constant Summary collapse

HEADINGS =
%w[part chapter section subsection subsubsection]

Instance Attribute Summary

Attributes inherited from BasicProcessor

#options, #scanner

Instance Method Summary collapse

Methods included from TeX

#tex, #tex_escape

Constructor Details

#initialize(scanner, label, options) ⇒ HeadingProcessor

Returns a new instance of HeadingProcessor.



7
8
9
10
# File 'lib/html2tex/heading_processor.rb', line 7

def initialize(scanner, label, options)
  @label = label
  super(scanner, options)
end

Instance Method Details

#to_tex(buffer = "") ⇒ Object



12
13
14
# File 'lib/html2tex/heading_processor.rb', line 12

def to_tex(buffer="")
  buffer << wrap(super(""))
end