Class: DMark::Translator
- Inherits:
-
Object
- Object
- DMark::Translator
- Defined in:
- lib/dmark/translator.rb
Instance Attribute Summary collapse
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(tree) ⇒ Translator
constructor
A new instance of Translator.
- #run ⇒ Object
Constructor Details
#initialize(tree) ⇒ Translator
Returns a new instance of Translator.
5 6 7 8 9 |
# File 'lib/dmark/translator.rb', line 5 def initialize(tree) @tree = tree @out = '' end |
Instance Attribute Details
#out ⇒ Object (readonly)
Returns the value of attribute out.
3 4 5 |
# File 'lib/dmark/translator.rb', line 3 def out @out end |
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/dmark/translator.rb', line 11 def run handle(@tree) @out end |