Class: RD::Visitor

### Home Classes Methods

### In Files

- lib/rd/visitor.rb

### Parent

Object

### Methods

- ::define_visit_Nonterminal
- ::define_visit_Terminal
- ::version
- #visit
- #visit_DescListItem
- #visit_MethodListItem
- #visit_Reference
- #visit_children

### Files

- post-install

### Class/Module Index

Quicksearch

- RD
- RD::AutoLabel
- RD::BlockElement
- RD::Code
- RD::ComplexListItem
- RD::DescList
- RD::DescListItem
- RD::DescListItem::Term
- RD::DocumentElement
- RD::DocumentStructure
- RD::Element
- RD::ElementRelationship
- RD::Emphasis
- RD::EnumList
- RD::EnumListItem
- RD::Filter
- RD::Filter::FileInclude
- RD::Footnote
- RD::Headline
- RD::Include
- RD::Index
- RD::InlineElement
- RD::InlineIncludable
- RD::ItemList
- RD::ItemListItem
- RD::Keyboard
- RD::LabelComposable
- RD::LabeledElement
- RD::List
- RD::ListItem
- RD::ListItemComposable
- RD::MethodList
- RD::MethodListItem
- RD::MethodListItem::Term
- RD::MethodParse
- RD::NonterminalElement
- RD::NonterminalInline
- RD::OutputFormatVisitor
- RD::ParserUtility
- RD::Part
- RD::RBLFile
- RD::RBLSuite
- RD::RD2HTMLExtVisitor
- RD::RD2HTMLExtVisitor::EnableBr
- RD::RD2HTMLExtVisitor::HeadElement
- RD::RD2HTMLExtVisitor::HeadLineTitle
- RD::RD2HTMLExtVisitor::HeadlineSecno
- RD::RD2HTMLExtVisitor::NativeInline
- RD::RD2HTMLExtVisitor::RefExtension
- RD::RD2HTMLVisitor
- RD::RD2MANVisitor
- RD::RD2RDOVisitor
- RD::RD2RMIVisitor
- RD::RDElement
- RD::RDInlineParser
- RD::RDParser
- RD::RDTree
- RD::RDVisitor
- RD::Reference
- RD::Reference::Label
- RD::Reference::RDLabel
- RD::Reference::TemporaryLabel
- RD::Reference::URL
- RD::ReferenceResolver
- RD::SearchFile
- RD::StringElement
- RD::TerminalElement
- RD::TerminalInline
- RD::TextBlock
- RD::Tree
- RD::Var
- RD::Verb
- RD::Verbatim
- RD::Version
- RD::Visitor
- Array

No matching classes.

# RD::Visitor

### Constants

SYSTEM_NAME
SYSTEM_VERSION
VERSION

### Public Class Methods

define_visit_Nonterminal(element_type) click to toggle source

    # File lib/rd/visitor.rb, line 25
    def Visitor.define_visit_Nonterminal(element_type)
      eval       def visit_#{element_type.id2name}(element)        apply_to_#{element_type.id2name}(element, visit_children(element))      end
    end

define_visit_Terminal(element_type) click to toggle source

    # File lib/rd/visitor.rb, line 33
    def Visitor.define_visit_Terminal(element_type)
      eval       def visit_#{element_type.id2name}(element)        apply_to_#{element_type.id2name}(element)      end
    end

version() click to toggle source

    # File lib/rd/visitor.rb, line 9
    def Visitor.version
      VERSION
    end

### Public Instance Methods

visit(tree) click to toggle source

    # File lib/rd/visitor.rb, line 13
    def visit(tree)
      tree.accept(self)
    end

visit_DescListItem(element) click to toggle source

    # File lib/rd/visitor.rb, line 55
    def visit_DescListItem(element)
      term = element.term.accept(self)
      apply_to_DescListItem(element, term, visit_children(element))
    end

visit_MethodListItem(element) click to toggle source

    # File lib/rd/visitor.rb, line 62
    def visit_MethodListItem(element)
      term = element.term.accept(self)
      apply_to_MethodListItem(element, term, visit_children(element))
    end

visit_Reference(element) click to toggle source

    # File lib/rd/visitor.rb, line 77
    def visit_Reference(element)
      children = visit_children(element)
      begin
        element.result_of_apply_method_of(self, children)
      rescue NameError
        apply_to_Reference(element, children)
      end
    end

visit_children(element) click to toggle source

    # File lib/rd/visitor.rb, line 17
    def visit_children(element)
      ret = []
      element.each_child do |i|
        ret.push(i.accept(self))
      end
      ret
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.