Module Spec::DSL::Matchers

  1. lib/spec/dsl/matchers.rb

Methods

public instance

  1. create

Public instance methods

create (name, &block_passed_to_create)
[show source]
# 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