class Parslet::Source

Public Instance Methods

matches?(pattern) click to toggle source
# File lib/parslet_extentions.rb, line 7
def matches?(pattern)
  if pattern.is_a?(String)
    @str.downcase.index(pattern.downcase, @pos) == @pos
  else
    sensitive_matches?(pattern)
  end
end
Also aliased as: sensitive_matches?
sensitive_matches?(pattern)

make new version thats case insensitive

Alias for: matches?