Class: HTML2TeX::HeadingProcessor
- Inherits:
-
BasicProcessor
- Object
- BasicProcessor
- HTML2TeX::HeadingProcessor
- Defined in:
- lib/html2tex/heading_processor.rb
Constant Summary collapse
- HEADINGS =
%w[part chapter section subsection subsubsection]
Instance Attribute Summary
Attributes inherited from BasicProcessor
Instance Method Summary collapse
-
#initialize(scanner, label, options) ⇒ HeadingProcessor
constructor
A new instance of HeadingProcessor.
- #to_tex(buffer = "") ⇒ Object
Methods included from TeX
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, ) @label = label super(scanner, ) 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 |