Class: Mocha::YieldParameters
Overview
:nodoc:
Instance Method Summary collapse
- #add(*parameters) ⇒ Object
-
#initialize ⇒ YieldParameters
constructor
A new instance of YieldParameters.
- #multiple_add(*parameter_groups) ⇒ Object
- #next_invocation ⇒ Object
Constructor Details
#initialize ⇒ YieldParameters
Returns a new instance of YieldParameters.
9 10 11 |
# File 'lib/mocha/yield_parameters.rb', line 9 def initialize @parameter_groups = [] end |
Instance Method Details
#add(*parameters) ⇒ Object
21 22 23 |
# File 'lib/mocha/yield_parameters.rb', line 21 def add(*parameters) @parameter_groups << SingleYield.new(*parameters) end |
#multiple_add(*parameter_groups) ⇒ Object
25 26 27 |
# File 'lib/mocha/yield_parameters.rb', line 25 def multiple_add(*parameter_groups) @parameter_groups << MultipleYields.new(*parameter_groups) end |