class SexpPath::Matcher::Block

Attributes

exp[R]

Public Class Methods

new(&block) click to toggle source
# File lib/sexp_path/matcher/block.rb, line 3
def initialize &block
  @exp = block
end

Public Instance Methods

inspect() click to toggle source
# File lib/sexp_path/matcher/block.rb, line 13
def inspect
  "<custom>"
end
satisfy?(o, data={}) click to toggle source
# File lib/sexp_path/matcher/block.rb, line 7
def satisfy?(o, data={})
  return nil unless @exp[o]

  capture_match o, data
end