mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
8 lines
No EOL
182 B
Ruby
8 lines
No EOL
182 B
Ruby
class Hash
|
|
def symbolize_keys!
|
|
keys.each do |key|
|
|
self[(key.to_sym rescue key)] = delete(key) if key.respond_to?(:to_sym) && !key.is_a?(Fixnum)
|
|
end
|
|
self
|
|
end
|
|
end |