Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/rackspace-fog/xenserver/utilities.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#symbolize_keys! ⇒ Object
2 3 4 5 6 7 |
# File 'lib/rackspace-fog/xenserver/utilities.rb', line 2 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 |