Class: IntNode
Instance Method Summary collapse
- #gen ⇒ Object
-
#initialize(val) ⇒ IntNode
constructor
A new instance of IntNode.
Methods inherited from Node
Constructor Details
#initialize(val) ⇒ IntNode
Returns a new instance of IntNode.
136 |
# File 'lib/code_generator.rb', line 136 def initialize val; super(val); end |
Instance Method Details
#gen ⇒ Object
138 139 140 |
# File 'lib/code_generator.rb', line 138 def gen @value.to_s end |