I was playing with Ruby 1.9 a bit over the holiday weekend and I found the eigenclass Changes in Ruby 1.9 page to be an invaluable reference to the changes we'll all be dealing with soon.

Some highlights:

  • Ruby 1.9 is significantly faster than Ruby 1.8.6, at least for the toy programs that I wrote with it.
  • send() no longer works to send to private methods. You need to use send!() instead.
  • Symbol #to_proc now allows you to do

    %w[a b c].map(&:capitalize) # => ["A", "B", "C"]

Check out the link above for more. It looks like December is going to be a fun month for Rubyists.

Comments