Module: Matchy::CustomMatcher
- Includes:
- MatcherBuilder
- Defined in:
- lib/matchy/custom_matcher.rb
Instance Method Summary collapse
Methods included from MatcherBuilder
Instance Method Details
#custom_matcher(matcher_name, &block) ⇒ Object
4 5 6 7 8 |
# 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 |