Class: Rabbit::RT2RabbitVisitor
- Inherits:
-
Object
- Object
- Rabbit::RT2RabbitVisitor
- Defined in:
- lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb
Instance Method Summary collapse
-
#initialize(rd_visitor) ⇒ RT2RabbitVisitor
constructor
A new instance of RT2RabbitVisitor.
- #visit(parsed) ⇒ Object
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 |