class Array
Public Class Methods
wrap(object)
click to toggle source
From: activesupport/lib/active_support/core_ext/array/wrap.rb, line 39
# File lib/core_ext/array.rb, line 4 def self.wrap(object) if object.nil? [] elsif object.respond_to?(:to_ary) object.to_ary || [object] else [object] end end