Module: Hashie::Extensions::StringifyKeys
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- 
  
    
      #stringify_keys  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Return a new hash with all keys converted to strings.
 - 
  
    
      #stringify_keys!  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Convert all keys in the hash to strings.
 
Methods included from ClassMethods
Instance Method Details
#stringify_keys ⇒ Object
Return a new hash with all keys converted to strings.
      17 18 19  | 
    
      # File 'lib/hashie/extensions/stringify_keys.rb', line 17 def stringify_keys StringifyKeys.stringify_keys(self) end  | 
  
#stringify_keys! ⇒ Object
Convert all keys in the hash to strings.
      10 11 12 13  | 
    
      # File 'lib/hashie/extensions/stringify_keys.rb', line 10 def stringify_keys! StringifyKeys.stringify_keys!(self) self end  |