Class: Profligacy::LELNameScanner

Inherits:
Object
  • Object
show all
Includes:
Profligacy::LELParser::LELEventListener
Defined in:
lib/profligacy/lel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLELNameScanner

Returns a new instance of LELNameScanner.



10
11
12
# File 'lib/profligacy/lel.rb', line 10

def initialize
  @children = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symb, *args) ⇒ Object



18
19
20
# File 'lib/profligacy/lel.rb', line 18

def method_missing(symb, *args)
  #ignored
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



8
9
10
# File 'lib/profligacy/lel.rb', line 8

def children
  @children
end

Instance Method Details

#id(name) ⇒ Object



14
15
16
# File 'lib/profligacy/lel.rb', line 14

def id(name)
  @children << name.to_sym
end