Class: TableNode

Inherits:
Node
  • Object
show all
Defined in:
lib/code_generator.rb

Instance Method Summary collapse

Methods inherited from Node

#column

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

#genObject



247
248
249
# File 'lib/code_generator.rb', line 247

def gen
  @tab.gen
end

#key_nameObject



243
244
245
# File 'lib/code_generator.rb', line 243

def key_name
  @col.gen
end

#table_to_classObject



239
240
241
# File 'lib/code_generator.rb', line 239

def table_to_class
  @tab.gen.capitalize
end