Ruby bundle: Hash Pair snippet is dysfunctional with 1.9 symbols used as hash keys

View: New views
1 Messages — Rating Filter:   Alert me  

Ruby bundle: Hash Pair snippet is dysfunctional with 1.9 symbols used as hash keys

by hessml :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ruby 1.9 has a new syntax for symbols:

my_hash = {
      :a => 'string'  # old way    
       b: 'string'        # new way
};

Tabbing after the 'b:' invokes the Hash Pair snippet which isn't what you want.