Class: IdentNode

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

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ IdentNode

Returns a new instance of IdentNode.



25
# File 'lib/code_generator.rb', line 25

def initialize val; super(val, nil); end

Instance Method Details

#columnObject



32
33
34
35
# File 'lib/code_generator.rb', line 32

def column
  # ident is likely a column (must be?)
  @value
end

#genObject



27
28
29
30
# File 'lib/code_generator.rb', line 27

def gen
  # bottoms out: IDENT is a string
  @value
end