Class: RD::RDVisitor
- Inherits:
-
OutputFormatVisitor
- Object
- Visitor
- OutputFormatVisitor
- RD::RDVisitor
- Extended by:
- Forwardable
- Defined in:
- lib/rd2odt/rdtool/rd/rdvisitor.rb
Overview
for Backward compatibility
Direct Known Subclasses
RD2ODT::RD2ODTVisitor, RD2HTMLVisitor, RD2MANVisitor, RD2RDOVisitor, RD2RMIVisitor
Constant Summary
Constants inherited from OutputFormatVisitor
OutputFormatVisitor::INCLUDE_SUFFIX, OutputFormatVisitor::OUTPUT_SUFFIX
Constants inherited from Visitor
Visitor::SYSTEM_NAME, Visitor::SYSTEM_VERSION, Visitor::VERSION
Instance Attribute Summary
Attributes inherited from OutputFormatVisitor
Instance Method Summary collapse
- #apply_to_DescListItemTerm(element, contents) ⇒ Object
- #apply_to_MethodListItemTerm(element) ⇒ Object
- #prepare_labels(tree, prefix = "label:") ⇒ Object
- #refer_external(label) ⇒ Object
Methods inherited from OutputFormatVisitor
#apply_to_Include, #initialize
Methods included from SearchFile
Methods inherited from Visitor
define_visit_Nonterminal, define_visit_Terminal, version, #visit, #visit_DescListItem, #visit_MethodListItem, #visit_Reference, #visit_children
Constructor Details
This class inherits a constructor from RD::OutputFormatVisitor
Instance Method Details
#apply_to_DescListItemTerm(element, contents) ⇒ Object
11 12 13 |
# File 'lib/rd2odt/rdtool/rd/rdvisitor.rb', line 11 def apply_to_DescListItemTerm(element, contents) contents end |
#apply_to_MethodListItemTerm(element) ⇒ Object
15 16 17 |
# File 'lib/rd2odt/rdtool/rd/rdvisitor.rb', line 15 def apply_to_MethodListItemTerm(element) apply_to_String(element.content) end |
#prepare_labels(tree, prefix = "label:") ⇒ Object
23 24 25 |
# File 'lib/rd2odt/rdtool/rd/rdvisitor.rb', line 23 def prepare_labels(tree, prefix = "label:") @reference_resolver = ReferenceResolver.new(tree, prefix) end |
#refer_external(label) ⇒ Object
31 32 33 34 35 |
# File 'lib/rd2odt/rdtool/rd/rdvisitor.rb', line 31 def refer_external(label) label = @reference_resolver.refer_external_file(label) return nil unless label label[1] end |