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.



122
123
124
# File 'lib/parslet.rb', line 122

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