Sha256: 2211cdce1199afc048103254625805cb50bb3a17ea9d8f70418ab9d6454922ea
Contents?: true
Size: 347 Bytes
Versions: 7
Compression:
Stored size: 347 Bytes
Contents
class Array def to_list self end end class NilClass def to_list [] end end class String # Helper method for cleaning list options. # This will split the option on ':' or ';' # if it is a string, rather than an array. # And it will make sure there are no nil elements. def to_list split(/[:;,\n]/) end end
Version data entries
7 entries across 7 versions & 2 rubygems