method
define_predicate_matchers
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Options
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
define_predicate_matchers()
protected
Hide source
# File lib/spec/runner/options.rb, line 267 def define_predicate_matchers Spec::Runner.configuration.predicate_matchers.each_pair do |matcher_method, method_on_object| Spec::Example::ExampleMethods::__send__ :define_method, matcher_method do |*args| eval("be_#{method_on_object.to_s.gsub('?','')}(*args)") end end end