Class: Deadfire::FrontEnd::CommentNode
- Defined in:
- lib/deadfire/front_end/comment_node.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(comment) ⇒ CommentNode
constructor
A new instance of CommentNode.
Constructor Details
#initialize(comment) ⇒ CommentNode
8 9 10 |
# File 'lib/deadfire/front_end/comment_node.rb', line 8 def initialize(comment) @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
6 7 8 |
# File 'lib/deadfire/front_end/comment_node.rb', line 6 def comment @comment end |
Instance Method Details
#accept(visitor) ⇒ Object
12 13 14 |
# File 'lib/deadfire/front_end/comment_node.rb', line 12 def accept(visitor) visitor.visit_comment_node(self) end |