Sha256: 17b36a5ca51c8535c822d3824c638047516f7ed0008304ed8a89e882d081d884
Contents?: true
Size: 341 Bytes
Versions: 8
Compression:
Stored size: 341 Bytes
Contents
module Esse # The idea here is to add useful methods to the ruby standard objects without # monkey patching them module ArrayUtils module_function def wrap(object) if object.nil? [] elsif object.respond_to?(:to_ary) object.to_ary || [object] else [object] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems