Sha256: 2e244b29cbdf5d5982278712b490475fb657e2d361fbbe43fa7868a5af1883a4
Contents?: true
Size: 193 Bytes
Versions: 12
Compression:
Stored size: 193 Bytes
Contents
class String def lazy_to_hash hash = { } return hash if self.empty? arr = self.split(',').map { |i| i.strip } arr.each do |key| hash[key.to_sym] = true end #each hash end end
Version data entries
12 entries across 12 versions & 1 rubygems