Class: SexpPath::Matcher::Wild

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

Overview

See SexpQueryBuilder.wild and SexpQueryBuilder._

Instance Method Summary collapse

Methods inherited from Base

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

Methods included from Traverse

#capture_as, #replace_sexp, #search, #search_each

Instance Method Details

#inspectObject



9
10
11
# File 'lib/sexp_path/matcher/wild.rb', line 9

def inspect
  "wild"
end

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

Matches any single element.

Returns:

  • (Boolean)


5
6
7
# File 'lib/sexp_path/matcher/wild.rb', line 5

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