class String
Public Instance Methods
__match?(needle, thread_state = nil)
click to toggle source
# File lib/cannonbol/cannonbol.rb, line 559 def __match?(needle, thread_state = nil) if thread_state needle.pull(thread_state) elsif self.length == 0 or (!needle.ignore_case and needle.remaining_string[0..self.length-1] == self) or (needle.ignore_case and needle.remaining_string[0..self.length-1].upcase == self.upcase) [needle.push(self.length)] end end