Class: UnaryNode
- Inherits:
-
Object
- Object
- UnaryNode
- Defined in:
- lib/ast.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#subTree ⇒ Object
readonly
Returns the value of attribute subTree.
Instance Method Summary collapse
-
#initialize(subTree) ⇒ UnaryNode
constructor
A new instance of UnaryNode.
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
#subTree ⇒ Object (readonly)
Returns the value of attribute subTree.
13 14 15 |
# File 'lib/ast.rb', line 13 def subTree @subTree end |