Joined May 2011
·
Posted to
Vim - Regex to change hash rockets to new hash syntax in Ruby
over 1 year
ago
What about {:'a' => 'b'} ? ;)
Achievements
68 Karma
0 Total ProTip Views
Altruist
Increase developer well-being by sharing at least 20 open source projects
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Forked
Have a project valued enough to be forked by someone else
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
I mean {:'a' => 'b'} {'a': 'b'} - invalid
Also there is situation when it can't be rewritten in this style, for example {:'!@#' => 'b'}. That's why its command can't be used in batch replacements.