module Matchy::CustomMatcher

Public Instance Methods

custom_matcher(matcher_name, &block) click to toggle source
# File lib/matchy/custom_matcher.rb, line 4
def custom_matcher(matcher_name, &block)
  define_method matcher_name do |*args|
    build_matcher(matcher_name, args, &block)
  end
end