class Rattler::Parsers::Skip

Skip decorates a parser to skip over what it matches without capturing the results

Public Instance Methods

capturing?() click to toggle source

@return false @see Parser#capturing?

# File lib/rattler/parsers/skip.rb, line 29
def capturing?
  false
end
capturing_decidable?() click to toggle source

@return true @see Parser#capturing_decidable?

# File lib/rattler/parsers/skip.rb, line 35
def capturing_decidable?
  true
end
parse(*args) click to toggle source

If the decorated parser matches return true, otherwise return a false value.

@param (see Match#parse)

@return [Boolean] true if the decorated parser matches at the parse

position
# File lib/rattler/parsers/skip.rb, line 23
def parse(*args)
  child.parse(*args) && true
end
skip() click to toggle source

@return (see Parser#skip)

# File lib/rattler/parsers/skip.rb, line 40
def skip
  self
end