class Cannonbol::Arb
Public Instance Methods
__match?(needle, match_length = 0, thread_state = nil)
click to toggle source
# File lib/cannonbol/cannonbol.rb, line 298 def __match?(needle, match_length = 0, thread_state = nil) needle.pull(thread_state) if needle.remaining_string.length >= match_length thread_state = needle.push(match_length) match_length += 1 [match_length, thread_state] end end