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.



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

def initialize
  @children = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symb, *args) ⇒ Object



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

def method_missing(symb, *args)
  #ignored
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



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

def children
  @children
end

Instance Method Details

#id(name) ⇒ Object



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

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