Class: Parslet::DelayedMatchConstructor Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Allows for delayed construction of #match. See also Parslet.match.

Instance Method Summary collapse

Instance Method Details

#[](str) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



137
138
139
# File 'lib/parslet.rb', line 137

def [](str)
  Atoms::Re.new("[" + str + "]")
end