Methods

Class 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
12:       def create(name, &declarations)
13:         Spec.deprecate("Spec::Matchers.create","Spec::Matchers.define")
14:         define(name, &declarations)
15:       end
define(name, &declarations) click to toggle source

See Spec::Matchers

   # File lib/spec/matchers/dsl.rb, line 5
5:       def define(name, &declarations)
6:         define_method name do |*expected|
7:           Spec::Matchers::Matcher.new name, *expected, &declarations
8:         end
9:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.