class Sexp::Remaining

Matches all remaining input. If remaining comes before any other matchers, they will be ignored.

examples:

s(:a)         / s{ s(:a, ___ ) } #=> [s(:a)]
s(:a, :b, :c) / s{ s(:a, ___ ) } #=> [s(:a, :b, :c)]

Public Instance Methods

greedy?() click to toggle source
# File lib/sexp_matcher.rb, line 574
def greedy?
  true
end
satisfy?(o) click to toggle source

Always satisfied once this is reached. Think of it as a var arg.

# File lib/sexp_matcher.rb, line 570
def satisfy? o
  true
end