public
Description: Reia is a Ruby/Python-like language for BEAM, the Erlang VM
Homepage: http://reia-lang.org
Clone URL: git://github.com/tarcieri/reia.git
Fix quoting of hash keys/values
Tony Arcieri (author)
Tue Aug 05 01:17:52 -0700 2008
commit  760b17b5f3fe4d24a02a6aa15642da69dca3bd54
tree    039570e10cae333db571238ae1f0778d3e9a210a
parent  bb384d0c1cb46c223ce32f59b981fa98264879ac
...
25
26
27
28
 
29
30
...
25
26
27
 
28
29
30
0
@@ -25,5 +25,5 @@ module Hash
0
   # Hash#to_s
0
   # Convert a hash to a string representation
0
   def funcall(hash, ~to_s, [])
0
- members = hash.to_list().map { |(k, v)| [k, v].join(":") }
0
+ members = hash.to_list().map { |(k, v)| [k.to_s(), v.to_s()].join(":") }
0
     ["{", members.join(","), "}"].join()
0
\ No newline at end of file

Comments

    No one has commented yet.