class Cannonbol::Break
Public Instance Methods
__match?(needle, thread_state = nil)
click to toggle source
# File lib/cannonbol/cannonbol.rb, line 457 def __match?(needle, thread_state = nil) if thread_state needle.pull(thread_state) else the_chars, len = chars(needle), 0 while needle.remaining_string.length > len and !(the_chars.include? needle.remaining_string[len..len]) len += 1 end [needle.push(len)] end end