Class: Pegex::Receiver
- Inherits:
-
Object
- Object
- Pegex::Receiver
- Defined in:
- lib/pegex/receiver.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
Instance Attribute Details
#parser ⇒ Object
Returns the value of attribute parser.
2 3 4 |
# File 'lib/pegex/receiver.rb', line 2 def parser @parser end |
Instance Method Details
#flatten(array) ⇒ Object
4 5 6 |
# File 'lib/pegex/receiver.rb', line 4 def flatten array return array.flatten! end |