Module Spec::Matchers::DSL

  1. lib/spec/matchers/dsl.rb

Methods

public instance

  1. create

Public instance methods

create (name, &block_passed_to_create)
[show source]
# File lib/spec/matchers/dsl.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