Class: Kwaff::Comment

Inherits:
Node
  • Object
show all
Defined in:
lib/kwaff/node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#empty_lines

Instance Method Summary collapse

Methods inherited from Node

#to_rexml, #to_xml

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

#strObject (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