Object
# File lib/mocha/argument_iterator.rb, line 5 5: def initialize(argument) 6: @argument = argument 7: end
# File lib/mocha/argument_iterator.rb, line 9 9: def each(&block) 10: if @argument.is_a?(Hash) then 11: @argument.each do |method_name, return_value| 12: block.call(method_name, return_value) 13: end 14: else 15: block.call(@argument) 16: end 17: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.