Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Switch from old hash syntax to new


  • Please log in to reply
No replies to this topic

#1 Ohm

Ohm

    Driver

  • Moderators
  • 371 posts
  • LocationCopenhagen

Posted 15 January 2014 - 12:06 PM

I just wrote a small blog post about switching from the old hash (rocket) syntax to the new, with shortcuts for Sublime Text 2

 

Check it out: http://ohm.sh/2014/0...ash-syntax.html

 

I make use of the RegReplace plugin as well as this nifty regex:

s/([^:]):(\w+)\s*=>/\1\2:/g

  • jack likes this
Blog: http://ohm.sh | Twitter: @madsohm




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users