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
Generated with the Darkfish Rdoc Generator 2.