Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 251 Bytes
module Matchy
module DefMatcher
include Matchy::MatcherBuilder
def def_matcher(matcher_name, &block)
self.class.send :define_method, matcher_name do |*args|
build_matcher(matcher_name, args, &block)
end
end
end
end
Something went wrong with that request. Please try again.