Sha256: 3c6017dec6d79bf30faad860b04eaebf7e459d1d593be0c188169831e0c1912e

Contents?: true

Size: 196 Bytes

Versions: 4

Compression:

Stored size: 196 Bytes

Contents

class String
	def simple_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
simplexframe-0.0.04 lib/simplexframe/ext/string.rb
simplexframe-0.0.03 lib/simplexframe/ext/string.rb
simplexframe-0.0.02 lib/simplexframe/ext/string.rb
simplexframe-0.0.01 lib/simplexframe/ext/string.rb