Class: MotionSpec::Matcher::BeGeneric
- Inherits:
-
SingleMethod
- Object
- SingleMethod
- MotionSpec::Matcher::BeGeneric
- Defined in:
- lib/motion-spec/matcher/be_generic.rb
Instance Method Summary collapse
-
#initialize(method_name, *values) ⇒ BeGeneric
constructor
A new instance of BeGeneric.
Methods inherited from SingleMethod
#fail!, #fail_message, #matches?
Constructor Details
#initialize(method_name, *values) ⇒ BeGeneric
Returns a new instance of BeGeneric.
5 6 7 |
# File 'lib/motion-spec/matcher/be_generic.rb', line 5 def initialize(method_name, *values) super("#{method_name}?", *values) end |