Class: Kwaff::Comment
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(translator, level = 0) ⇒ Object
-
#initialize(str) ⇒ Comment
constructor
A new instance of Comment.
Methods inherited from Node
Constructor Details
#initialize(str) ⇒ Comment
Returns a new instance of Comment.
77 78 79 |
# File 'lib/kwaff/node.rb', line 77 def initialize(str) @str = str end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
80 81 82 |
# File 'lib/kwaff/node.rb', line 80 def str @str end |
Instance Method Details
#accept(translator, level = 0) ⇒ Object
74 75 76 |
# File 'lib/kwaff/node.rb', line 74 def accept(translator, level=0) return translator.translate_comment(self, level) end |