Method: Ray.describe_matcher
- Defined in:
- lib/ray/dsl/matcher.rb
.describe_matcher(name) {|*args| ... } ⇒ Object
65 66 67 68 69 70 71 72 73 |
# File 'lib/ray/dsl/matcher.rb', line 65 def describe_matcher(name, &create_block) Matchers.module_eval do define_method(name) do |*args| DSL::Matcher.new(&create_block.call(*args)) end module_function name end end |