Sha256: 352b3974380ebb63e53a7923b55b4454041501a2de85e13192a61a78aad4c3ff
Contents?: true
Size: 242 Bytes
Versions: 2
Compression:
Stored size: 242 Bytes
Contents
module SandthornDriverSequel2 module Utilities def self.array_wrap(object) if object.nil? [] elsif object.respond_to?(:to_ary) object.to_ary || [object] else [object] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sandthorn_driver_sequel_2-0.0.2 | lib/sandthorn_driver_sequel_2/utilities/array.rb |
sandthorn_driver_sequel_2-0.0.1 | lib/sandthorn_driver_sequel_2/utilities/array.rb |