Class: Deadfire::FrontEnd::CommentNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/deadfire/front_end/comment_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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