Sha256: 2730b2d9216fa166f8d4affff6b990e3b8d3838fef01be2e4262adf5a680435f
Contents?: true
Size: 356 Bytes
Versions: 97
Compression:
Stored size: 356 Bytes
Contents
module Mocha class ArgumentIterator def initialize(argument) @argument = argument end 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 end end
Version data entries
97 entries across 92 versions & 11 rubygems