Class: SexpPath::Matcher::Remaining

Inherits:
Base
  • Object
show all
Defined in:
lib/sexp_path/matcher/remaining.rb

Overview

See SexpQueryBuilder._

Instance Method Summary collapse

Methods inherited from Base

#&, #-@, #>>, #|

Methods included from Traverse

#capture_as, #replace_sexp, #search, #search_each

Constructor Details

#initializeRemaining

Creates a Matcher which will match any remaining Defaults to matching the immediate following sibling.



6
7
8
# File 'lib/sexp_path/matcher/remaining.rb', line 6

def initialize()

end

Instance Method Details

#inspectObject



15
16
17
# File 'lib/sexp_path/matcher/remaining.rb', line 15

def inspect
  "___"
end

#satisfy?(o, data = {}) ⇒ Boolean

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/sexp_path/matcher/remaining.rb', line 11

def satisfy?(o, data={})
  data
end