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.
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
#children ⇒ Object (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 |