Sha256: bb3a9618cbe0449fc6e30ff2dda47f9fd006d9ae2baff8871bfad6a0c2002295
Contents?: true
Size: 194 Bytes
Versions: 4
Compression:
Stored size: 194 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lazyman-0.1.10 | lib/lazyman/ext/string.rb |
lazyman-0.1.9 | lib/lazyman/ext/string.rb |
lazyman-0.1.8 | lib/lazyman/ext/string.rb |
lazyman-0.1.7 | lib/lazyman/ext/string.rb |