Class: Melbourne::AST::Undef

Inherits:
Node
  • Object
show all
Defined in:
lib/melbourne/ast/definitions.rb

Overview

An undef statement as in:

undef :x

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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

#nameObject

The name of the undef‘d element



40
41
42
# File 'lib/melbourne/ast/definitions.rb', line 40

def name
  @name
end