Sha256: 9227b08c7227721021ea748f2b40ff71c5f5b50cfdcb87f724ec070d7d67404f

Contents?: true

Size: 103 Bytes

Versions: 15

Compression:

Stored size: 103 Bytes

Contents

class Array
  def to_var_args(type)
    self.flatten.reduce([]) { |a, n| a << type << n }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
uia-1.0 lib/core_ext/array.rb
uia-0.8 lib/core_ext/array.rb
uia-0.7 lib/core_ext/array.rb
uia-0.7.alpha.1 lib/core_ext/array.rb
uia-0.6 lib/core_ext/array.rb
uia-0.5 lib/core_ext/array.rb
uia-0.4.4 lib/core_ext/array.rb
uia-0.4.3 lib/core_ext/array.rb
uia-0.4.2 lib/core_ext/array.rb
uia-0.4.1 lib/core_ext/array.rb
uia-0.4 lib/core_ext/array.rb
uia-0.3.3 lib/core_ext/array.rb
uia-0.3.2 lib/core_ext/array.rb
uia-0.3.1 lib/core_ext/array.rb
uia-0.3 lib/core_ext/array.rb