Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/core_ext/array.rb
Instance Method Summary collapse
Instance Method Details
#to_var_args(type) ⇒ Object
2 3 4 |
# File 'lib/core_ext/array.rb', line 2 def to_var_args(type) self.flatten.reduce([]) { |a, n| a << type << n } end |