06 Jan '14, 5am

Convert Ruby 1.8 to 1.9 Hash Syntax

GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS Written by thoughtbot Convert Ruby 1.8 to 1.9 Hash Syntax Dan Croak February 11, 2012 ruby vim In vim, for an entire file: :%s/:\([^ ]*\)\(\s*\)=>/\1:/g In the shell, for an entire project: perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb Now, instead of those old-school hashes like this: get '/', :agent => MOBILE_BROWSERS do You'll have new-school hashes like this: get '/', agent: MOBILE_BROWSERS do

Full article: http://robots.thoughtbot.com/convert-ruby-1-8-to-1-9-hash...

Tweets

Convert Ruby 1.8 to 1.9 Hash Syntax: GIANT ROBO...

robots.thoughtbot.com 29 Dec '13, 12am

GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS Written by thoughtbot Convert Ruby 1.8 to 1.9 Hash Syntax Dan Croak February...

@ollieread @danjordan Do something small (like ...

rubykoans.com 06 Jan '14, 3pm

The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax,...

Lazing With A Ruby

Lazing With A Ruby

hackaday.com 11 Jan '14, 12am

While the design and manufacture of the first ruby laser was astonishingly complex, the basic idea behind it is pretty sim...

@Im4n_imanina this one berapa eh convert to RM?

charleskeith.com 11 Jan '14, 12pm

There's no item in your shopping bag. | Online Store Credits : | Sign In | | Singapore | Search > Account Details Address ...

"Metaprogramming began with *taking drugs in th...

mislav.uniqpath.com 08 Jan '14, 11am

THE PREEVENTUALIST'S LOSING AND FINDING REGISTRY (a free service benefiting the ENLIGHTENED who have been LIGHTENED) --- u...

“Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu...

ruby-forum.com 06 Jan '14, 1pm

I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 1...