Class: BaconExpect::Matcher::BeGeneric
- Inherits:
-
SingleMethod
- Object
- SingleMethod
- BaconExpect::Matcher::BeGeneric
- Defined in:
- lib/bacon-expect/matchers/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.
3 4 5 |
# File 'lib/bacon-expect/matchers/be_generic.rb', line 3 def initialize(method_name, *values) super("#{method_name}?", *values) end |