Class: Melbourne::AST::Undef
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
An undef statement as in:
undef :x
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the
undef‘d element.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, sym) ⇒ Undef
constructor
A new instance of Undef.
Methods inherited from Node
Constructor Details
#initialize(line, sym) ⇒ Undef
Returns a new instance of Undef.
42 43 44 45 |
# File 'lib/melbourne/ast/definitions.rb', line 42 def initialize(line, sym) @line = line @name = sym end |
Instance Attribute Details
#name ⇒ Object
The name of the undef‘d element
40 41 42 |
# File 'lib/melbourne/ast/definitions.rb', line 40 def name @name end |