Hello there!
I propose to add support for class objects *HashWithIndifferentAccess* to
method *Hash#extract!*:
before:
def extract!(*keys)
keys.each_with_object(self.class.new) { |key, result| result[key] =
delete(key) if has_key?(key) }
end
after:
def extract!(*keys)
keys.map! { |key| convert_key(key) } if respond_to?(:convert_key, true)
keys.each_with_object(self.class.new) { |key, result| result[key] =
delete(key) if has_key?(key) }
end
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.