# File lib/rspec/matchers/dsl.rb, line 6 def define(name, &declarations) matcher = RSpec::Matchers::Matcher.new(name, &declarations) define_method name do |*expected| $matcher_execution_context = self matcher.for_expected(*expected) end end