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.



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

def initialize(subTree)
  @subTree = subTree
end

Instance Attribute Details

#subTreeObject (readonly)

Returns the value of attribute subTree.



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

def subTree
  @subTree
end