Methods

Class/Module Index [+]

Quicksearch

RSpec::Matchers::DSL

Defines the custom matcher DSL.

Public Instance Methods

define(name, &declarations) click to toggle source

Defines a custom matcher. @see RSpec::Matchers

# 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
Also aliased as: matcher
matcher(name, &declarations) click to toggle source
Alias for: define

[Validate]

Generated with the Darkfish Rdoc Generator 2.