1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/xenserver/utilities.rb

9 lines
183 B
Ruby
Raw Normal View History

2012-04-02 07:25:03 -04:00
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
2014-02-19 07:30:59 -05:00
end