Methods

RSpec::Matchers::DSL

Public Instance Methods

define(name, &declarations) click to toggle source

See RSpec::Matchers

# File lib/rspec/matchers/dsl.rb, line 5
def define(name, &declarations)
  define_method name do |*expected|
    $matcher_execution_context = self
    RSpec::Matchers::Matcher.new name, *expected, &declarations
  end
end
Also aliased as: matcher
matcher(name, &declarations) click to toggle source
Alias for: define

[Validate]

Generated with the Darkfish Rdoc Generator 2.