Module: RSpec::Matchers::DSL
- Defined in:
 - lib/rspec/matchers/dsl.rb
 
Overview
Defines the custom matcher DSL.
Defined Under Namespace
Modules: DefaultImplementations, Macros Classes: Matcher
Instance Method Summary (collapse)
- 
  
      - (Object) define(name, &declarations) 
      (also: #matcher)
  
    
Defines a custom matcher.
 
Instance Method Details
- (Object) define(name, &declarations) Also known as: matcher
Defines a custom matcher.
      7 8 9 10 11  | 
    
      # File 'lib/rspec/matchers/dsl.rb', line 7 def define(name, &declarations) define_method name do |*expected| RSpec::Matchers::DSL::Matcher.new(name, declarations, self, *expected) end end  |