Class: Pegex::Receiver

Inherits:
Object
  • Object
show all
Defined in:
lib/pegex/receiver.rb

Direct Known Subclasses

Tree

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parserObject

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