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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

hessml
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.