Class: Yap::Shell::Parser::Nodes::CommentNode
- Inherits:
-
Object
- Object
- Yap::Shell::Parser::Nodes::CommentNode
- Includes:
- Visitor
- Defined in:
- lib/yap/shell/parser/nodes.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ CommentNode
constructor
A new instance of CommentNode.
- #inspect ⇒ Object
- #to_s ⇒ Object
Methods included from Visitor
Constructor Details
#initialize(text) ⇒ CommentNode
Returns a new instance of CommentNode.
92 93 94 |
# File 'lib/yap/shell/parser/nodes.rb', line 92 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
90 91 92 |
# File 'lib/yap/shell/parser/nodes.rb', line 90 def text @text end |
Instance Method Details
#inspect ⇒ Object
96 97 98 |
# File 'lib/yap/shell/parser/nodes.rb', line 96 def inspect to_s end |
#to_s ⇒ Object
100 101 102 |
# File 'lib/yap/shell/parser/nodes.rb', line 100 def to_s "CommentNode(#{@text})" end |