class String
Public Instance Methods
simple_to_hash()
click to toggle source
# File lib/simplexframe/ext/string.rb, line 2 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