Module: Spec::DSL::Matchers

Included in:
Matchers
Defined in:
lib/spec/dsl/matchers.rb

Instance Method Summary collapse

Instance Method Details

#create(name, &block_passed_to_create) ⇒ Object



4
5
6
7
8
# File 'lib/spec/dsl/matchers.rb', line 4

def create(name, &block_passed_to_create)
  define_method name do |expected|
    Spec::Matchers::Matcher.new name, expected, &block_passed_to_create
  end
end