Sha256: 219b98bb3b7812292c55fe7ed6ce47ad2b7ee5a5728be7fd16bcca39511261ea
Contents?: true
Size: 177 Bytes
Versions: 1
Compression:
Stored size: 177 Bytes
Contents
class Array def self.wrap(object) if object.nil? [] elsif object.respond_to?(:to_ary) object.to_ary || [object] else [object] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happy_support-1.0.0 | lib/happy_support/core_ext/array/wrap.rb |