class RT::RTVisitor

Attributes

body[R]
caption[R]
charcode[RW]
filename[RW]
header[R]
rt[R]

Public Class Methods

new() click to toggle source
# File lib/rt/rtvisitor.rb, line 18
def initialize
end
visit(parsed) click to toggle source
# File lib/rt/rtvisitor.rb, line 23
def self.visit(parsed)
  self::new.visit(parsed)
end

Public Instance Methods

setup() click to toggle source
# File lib/rt/rtvisitor.rb, line 37
def setup
  ""
end
teardown() click to toggle source
# File lib/rt/rtvisitor.rb, line 41
def teardown
  ""
end
visit(parsed) click to toggle source
# File lib/rt/rtvisitor.rb, line 27
def visit(parsed)
  @filename = @charset = nil
  @rt = parsed
  @header = @rt.header
  @body = @rt.body
  @caption = @rt.config['caption']

  setup + visit_Caption + visit_Header + visit_Body + teardown
end
visit_Body() click to toggle source
# File lib/rt/rtvisitor.rb, line 53
def visit_Body
  ""
end
visit_Caption() click to toggle source
# File lib/rt/rtvisitor.rb, line 45
def visit_Caption
  ""
end
visit_Header() click to toggle source
# File lib/rt/rtvisitor.rb, line 49
def visit_Header
  ""
end

Private Instance Methods

each_cell(ary) { |x| ... } click to toggle source
# File lib/rt/rtvisitor.rb, line 9
def each_cell(ary)
  ary.each do |x|
    if x.class == RT::RTCell
      yield x
    end
  end
end