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.
234 235 236 237 |
# File 'lib/code_generator.rb', line 234 def initialize tab, col @tab = tab @col = col end |
Instance Method Details
#gen ⇒ Object
247 248 249 |
# File 'lib/code_generator.rb', line 247 def gen @tab.gen end |
#key_name ⇒ Object
243 244 245 |
# File 'lib/code_generator.rb', line 243 def key_name @col.gen end |
#table_to_class ⇒ Object
239 240 241 |
# File 'lib/code_generator.rb', line 239 def table_to_class @tab.gen.capitalize end |