Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/rvs/to_rvs.rb

Instance Method Summary collapse

Instance Method Details

#to_rvsObject



67
68
69
70
71
72
73
# File 'lib/rvs/to_rvs.rb', line 67

def to_rvs
  ary = []
  each_pair do |key, value|
    ary.push("#{key.to_rvs}=>#{value.to_rvs}")
  end
  "{#{ary.join(',')}}"
end