Class: RD::RD2HTMLExtVisitor

### Home Classes Methods

### In Files

- lib/rd/rd2html-ext-lib.rb

### Parent

RD2HTMLVisitor

### Namespace

- MODULE RD::RD2HTMLExtVisitor::EnableBr
- MODULE RD::RD2HTMLExtVisitor::HeadElement
- MODULE RD::RD2HTMLExtVisitor::HeadLineTitle
- MODULE RD::RD2HTMLExtVisitor::HeadlineSecno
- MODULE RD::RD2HTMLExtVisitor::NativeInline
- MODULE RD::RD2HTMLExtVisitor::RefExtension

### Methods

- ::new
- #install_enable_br
- #install_head_element
- #install_headline_secno
- #install_headline_title
- #install_native_inline
- #install_ref_extension
- #visit

### 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::RD2HTMLExtVisitor

### Constants

INCLUDE_SUFFIX
METACHAR
OUTPUT_SUFFIX

  must-have constants

### Attributes

head[RW]
opt_enable_br[RW]
opt_head_element[RW]
opt_headline_secno[RW]
opt_headline_title[RW]
opt_native_inline[RW]
opt_ref_extension[RW]

### Public Class Methods

new() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 21
    def initialize
      @enum_count = [0, 0, 0, 0, 0, 0, 0]
      @levelold = 0
      @enum_start_level = 2
      @image_size = {}
      begin
        require 'image_size'
        @use_image_size = true
      rescue LoadError
        @use_image_size = false
      end

      super
    end

### Public Instance Methods

install_enable_br() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 55
    def install_enable_br
      extend EnableBr
    end

install_head_element() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 75
    def install_head_element
      extend HeadElement
    end

install_headline_secno() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 59
    def install_headline_secno
      extend HeadLineTitle
      extend HeadlineSecno
    end

install_headline_title() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 47
    def install_headline_title
      extend HeadLineTitle
    end

install_native_inline() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 51
    def install_native_inline
      extend NativeInline
    end

install_ref_extension() click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 64
    def install_ref_extension
      extend RefExtension
      @ref_extension = []
      (methods + private_methods).sort.each do |m|
        if /^ref_ext/ =~ m
          @ref_extension.push(m.intern)
        end
      end
      @ref_extension.push(:default_ref_ext)
    end

visit(tree) click to toggle source

    # File lib/rd/rd2html-ext-lib.rb, line 36
    def visit(tree)
      install_headline_title if opt_headline_title
      install_headline_secno if opt_headline_secno
      install_ref_extension if opt_ref_extension
      install_enable_br if opt_enable_br
      install_native_inline if opt_native_inline
      install_head_element if opt_head_element
      title_init if opt_headline_title || opt_headline_secno
      super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.