Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/code_generator.rb
Direct Known Subclasses
ActionNode, CheckNode, DateExprNode, EmptyExprNode, ExprNode, ForeignKeyNode, IdentNode, IntNode, OperatorNode, StrLitNode, TableNode, TextNode, TypedExprNode, UniqueNode
Instance Method Summary collapse
- #column ⇒ Object
- #gen ⇒ Object
-
#initialize(val, *args) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(val, *args) ⇒ Node
Returns a new instance of Node.
2 3 4 5 |
# File 'lib/code_generator.rb', line 2 def initialize val, *args @value = val @children = args end |
Instance Method Details
#column ⇒ Object
11 12 13 |
# File 'lib/code_generator.rb', line 11 def column 'base' end |
#gen ⇒ Object
7 8 9 |
# File 'lib/code_generator.rb', line 7 def gen raise "gen is not implemented: #{self}" end |