Class: TableNode
Instance Method Summary collapse
- #gen ⇒ Object
-
#initialize(tab, col) ⇒ TableNode
constructor
A new instance of TableNode.
- #key_name ⇒ Object
- #table_to_class ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(tab, col) ⇒ TableNode
Returns a new instance of TableNode.
246 247 248 249 |
# File 'lib/code_generator.rb', line 246 def initialize tab, col @tab = tab @col = col end |
Instance Method Details
#gen ⇒ Object
259 260 261 |
# File 'lib/code_generator.rb', line 259 def gen @tab.gen end |
#key_name ⇒ Object
255 256 257 |
# File 'lib/code_generator.rb', line 255 def key_name @col.gen end |
#table_to_class ⇒ Object
251 252 253 |
# File 'lib/code_generator.rb', line 251 def table_to_class @tab.gen.capitalize end |