module RSpec::Matchers::DSL
def define(name, &declarations)
- See: RSpec::Matchers -
Other tags:
- Yield: - block that is used to define the matcher.
Parameters:
-
name
(Symbol
) -- the name for the matcher
def define(name, &declarations) warn_about_block_args(name, declarations) define_method name do |*expected, &block_arg| RSpec::Matchers::DSL::Matcher.new(name, declarations, self, *expected, &block_arg) end end