Methods

Class/Module Index [+]

Quicksearch

Spec::Matchers::DSL

Public Instance Methods

create(name, &declarations) click to toggle source

Deprecated - use define

# 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) click to toggle source

See Spec::Matchers

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.