Class: RKelly::Nodes::LabelNode
- Defined in:
- lib/rkelly/nodes/label_node.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(name, value) ⇒ LabelNode
constructor
A new instance of LabelNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(name, value) ⇒ LabelNode
Returns a new instance of LabelNode.
5 6 7 8 |
# File 'lib/rkelly/nodes/label_node.rb', line 5 def initialize(name, value) super(value) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rkelly/nodes/label_node.rb', line 4 def name @name end |