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?