Module Spec::Matchers::DSL

  1. lib/spec/matchers/dsl.rb

Methods

public instance

  1. create
  2. define

Public instance methods

create (name, &declarations)

Deprecated - use define

[show source]
# File lib/spec/matchers/dsl.rb, line 12
      def create(name, &declarations)
        Spec.deprecate("Spec::Matchers.create","Spec::Matchers.define")
        define(name, &declarations)
      end
define (name, &declarations)
[show source]
# File lib/spec/matchers/dsl.rb, line 5
      def define(name, &declarations)
        define_method name do |*expected|
          Spec::Matchers::Matcher.new name, *expected, &declarations
        end
      end