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)
See Spec::Matchers
[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