Class: Profligacy::LELNameScanner
- Inherits:
-
Object
- Object
- Profligacy::LELNameScanner
- Includes:
- Profligacy::LELParser::LELEventListener
- Defined in:
- lib/profligacy/lel.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Instance Method Summary collapse
- #id(name) ⇒ Object
-
#initialize ⇒ LELNameScanner
constructor
A new instance of LELNameScanner.
- #method_missing(symb, *args) ⇒ Object
Constructor Details
#initialize ⇒ LELNameScanner
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
#children ⇒ Object (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 |