class Cannonbol::RTab

Public Instance Methods

__match?(needle, thread_state = nil) click to toggle source
# File lib/cannonbol/cannonbol.rb, line 393
def __match?(needle, thread_state = nil)
  if thread_state
    needle.pull(thread_state)
  else
    len = (needle.remaining_string.length - pos(needle))
    [needle.push(len)] if len >= 0 and needle.remaining_string.length >= len
  end
end