Object
# File lib/mocha/argument_iterator.rb, line 5 def initialize(argument) @argument = argument end
# File lib/mocha/argument_iterator.rb, line 9 def each(&block) if @argument.is_a?(Hash) then @argument.each do |method_name, return_value| block.call(method_name, return_value) end else block.call(@argument) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.