ActiveSupport、Array#extract_options!
>> require "rubygems" => true >> require "active_support" => true >> [1, 2, 3].extract_options! => {} >> [1, 2, 3, {:a => :b}].extract_options! => {:a=>:b}
何?何?
>> require "rubygems" => true >> require "active_support" => true >> [1, 2, 3].extract_options! => {} >> [1, 2, 3, {:a => :b}].extract_options! => {:a=>:b}
何?何?