class Hash

Public Instance Methods

to_r() click to toggle source
# File lib/rosar.rb, line 21
def to_r
  str = []
  self.each_pair do |k,v|
    case v
    when String
      str << "#{k}=#{v}"
    when Array
      str << "#{k}=#{v.to_r}"
    else
      str << "#{k}=#{v}"
    end
  end
  str * ", "
end