Sha256: 64bdda8794a96b17d1ef26aad131a027cc17a5b3b45eab4dba31aa92149193f2
Contents?: true
Size: 422 Bytes
Versions: 32
Compression:
Stored size: 422 Bytes
Contents
module Mocha class YieldParameters def initialize @parameter_groups = [] end def next_invocation case @parameter_groups.length when 0 then [] when 1 then @parameter_groups.first else @parameter_groups.shift end end def add(*parameter_groups) @parameter_groups << parameter_groups.map do |pg| pg.is_a?(Array) ? pg : [pg] end end end end
Version data entries
32 entries across 32 versions & 3 rubygems