Created
April 12, 2011 12:08
-
-
Save makevoid/915393 to your computer and use it in GitHub Desktop.
ruby hash representation improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ruby hash representation improvement (or fix) | |
| ruby-1.9.2-head :001 > {a: "b"} | |
| => {:a=>"b"} | |
| ruby-1.9.2-head :002 > {a: "b"}.to_s | |
| => "{:a=>\"b\"}" | |
| should become: | |
| ruby-1.9.2-head :001 > {a: "b"} | |
| => {a: "b"} | |
| ruby-1.9.2-head :002 > {a: "b"}.to_s | |
| => "{a: \"b\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment