Sha256: 1bbe828e1d0af0d14bceb5d65f3e9b09243e2f6c224566b43785c21e49698b3d
Contents?: true
Size: 185 Bytes
Versions: 1
Compression:
Stored size: 185 Bytes
Contents
class String def lazy_to_hash hash = { } return hash if self.empty? self.split(',').map { |i| i.strip }.each do |key| hash[key.to_sym] = true end #each end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lazyman-0.1.5 | lib/lazyman/ext/string.rb |