Class: Rubinius::AST::Undef
- Defined in:
- lib/compiler/ast/definitions.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, sym) ⇒ Undef
constructor
A new instance of Undef.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, sym) ⇒ Undef
Returns a new instance of Undef.
28 29 30 31 |
# File 'lib/compiler/ast/definitions.rb', line 28 def initialize(line, sym) @line = line @name = sym end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/compiler/ast/definitions.rb', line 26 def name @name end |
Instance Method Details
#to_sexp ⇒ Object
33 34 35 |
# File 'lib/compiler/ast/definitions.rb', line 33 def to_sexp [:undef, @name.to_sexp] end |