Ruby 1.9.1: Hash

Published on

In ruby 1.9.1 has many changes for Hash some useful changes are below: RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 Now Hash preserves order: RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 Better to_s method(similar to hash.inspect). RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 hash.each and hash.each_pair RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 hash.select now returns hash instead of … Continue reading Ruby 1.9.1: Hash