Sha256: 117db7e8831606a78bda48261d2f803346f34cf2a16056add49c781f8106a8b0
Contents?: true
Size: 175 Bytes
Versions: 1
Compression:
Stored size: 175 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 |
---|---|
edools-0.1.1 | lib/edools/utils.rb |