Class: Mocha::MultipleYields

Inherits:
Object
  • Object
show all
Defined in:
lib/mocha/multiple_yields.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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_groupsObject (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

#eachObject



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