class Array
Public Instance Methods
to_var_args(type)
click to toggle source
# File lib/core_ext/array.rb, line 2 def to_var_args(type) self.flatten.reduce([]) { |a, n| a << type << n } end
# File lib/core_ext/array.rb, line 2 def to_var_args(type) self.flatten.reduce([]) { |a, n| a << type << n } end