1.9系今日のハマりポイント

RUBY_VERSION
#=> "1.8.7"
{:a => 1, :b => nil, :c => "a"}.delete_if{|k,v| v.nil?}
#=> {:a=>1, :c=>"a"}
{:a => 1, :b => nil, :c => "a"}.delete_if{|(k,v)| v.nil?}
#=> {:a=>1, :c=>"a"}
RUBY_VERSION
#=> "1.9.2"
{:a => 1, :b => nil, :c => "a"}.delete_if{|k,v| v.nil?}
#=> {:a=>1, :c=>"a"}
{:a => 1, :b => nil, :c => "a"}.delete_if{|(k,v)| v.nil?}
#=> {}