Class: UnaryNode

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

Direct Known Subclasses

StoreNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subTree) ⇒ UnaryNode

Returns a new instance of UnaryNode.



16
17
18
# File 'lib/ast.rb', line 16

def initialize(subTree)
  @subTree = subTree
end

Instance Attribute Details

#subTreeObject (readonly)

Returns the value of attribute subTree.



14
15
16
# File 'lib/ast.rb', line 14

def subTree
  @subTree
end