class SexpCliTools::Matchers::MethodImplementation
Public Class Methods
new(target_method)
click to toggle source
# File lib/sexp_cli_tools/matchers/method_implementation.rb, line 8 def initialize(target_method) @matcher = Sexp::Matcher.parse("[child (defn #{target_method} ___)]") end
satisfy?(sexp, target_method)
click to toggle source
# File lib/sexp_cli_tools/matchers/method_implementation.rb, line 4 def self.satisfy?(sexp, target_method) new(target_method).satisfy?(sexp) end
Public Instance Methods
satisfy?(sexp)
click to toggle source
# File lib/sexp_cli_tools/matchers/method_implementation.rb, line 12 def satisfy?(sexp) @matcher.satisfy?(sexp) end