method
create
1.2.0 -
Show latest stable
-
0 notes -
Class: Spec::DSL::Matchers
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
create(name, &block_passed_to_create)
public
Hide source
# File lib/spec/dsl/matchers.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