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.



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

def initialize tab, col
  @tab = tab
  @col = col
end

Instance Method Details

#genObject



259
260
261
# File 'lib/code_generator.rb', line 259

def gen
  @tab.gen
end

#key_nameObject



255
256
257
# File 'lib/code_generator.rb', line 255

def key_name
  @col.gen
end

#table_to_classObject



251
252
253
# File 'lib/code_generator.rb', line 251

def table_to_class
  @tab.gen.capitalize
end