Class: Mocha::MultipleYields
Overview
:nodoc:
Instance Attribute Summary collapse
-
#parameter_groups ⇒ Object
readonly
Returns the value of attribute parameter_groups.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(*parameter_groups) ⇒ MultipleYields
constructor
A new instance of MultipleYields.
Constructor Details
#initialize(*parameter_groups) ⇒ MultipleYields
Returns a new instance of MultipleYields.
7 8 9 |
# File 'lib/mocha/multiple_yields.rb', line 7 def initialize(*parameter_groups) @parameter_groups = parameter_groups end |
Instance Attribute Details
#parameter_groups ⇒ Object (readonly)
Returns the value of attribute parameter_groups.
5 6 7 |
# File 'lib/mocha/multiple_yields.rb', line 5 def parameter_groups @parameter_groups end |
Instance Method Details
#each ⇒ Object
11 12 13 14 15 |
# File 'lib/mocha/multiple_yields.rb', line 11 def each @parameter_groups.each do |parameter_group| yield(parameter_group) end end |