Class: Rabbit::RT2RabbitVisitor

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb

Instance Method Summary collapse

Constructor Details

#initialize(rd_visitor) ⇒ RT2RabbitVisitor

Returns a new instance of RT2RabbitVisitor.


9
10
11
# File 'lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb', line 9

def initialize(rd_visitor)
  @rd_visitor = rd_visitor
end

Instance Method Details

#visit(parsed) ⇒ Object


13
14
15
16
17
18
19
20
# File 'lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb', line 13

def visit(parsed)
  @rt = parsed
  @header = @rt.header
  @body = @rt.body
  @caption = @rt.config['caption']

  process
end