Class: Treetop::Runtime::CompiledParser::Regexp

Inherits:
Regexp
  • Object
show all
Defined in:
lib/piggly/parser/treetop_ruby19_patch.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Regexp

Returns a new instance of Regexp.



6
7
8
9
10
11
12
# File 'lib/piggly/parser/treetop_ruby19_patch.rb', line 6

def initialize(*args)
  if args.size == 1
    super(args.first, nil, 'n')
  else
    super
  end
end