Module: Hashie::Extensions::SymbolizeKeys

### Home Classes Methods

### In Files

- lib/hashie/extensions/symbolize_keys.rb

### Namespace

- MODULE Hashie::Extensions::SymbolizeKeys::ClassMethods

### Methods

- #symbolize_keys
- #symbolize_keys!

### Included Modules

- Hashie::Extensions::SymbolizeKeys::ClassMethods

### Class/Module Index

Quicksearch

- Hashie
- Hashie::Clash
- Hashie::Clash::ChainError
- Hashie::CoercionError
- Hashie::Dash
- Hashie::Extensions
- Hashie::Extensions::Coercion
- Hashie::Extensions::Coercion::ClassMethods
- Hashie::Extensions::Coercion::InstanceMethods
- Hashie::Extensions::Dash
- Hashie::Extensions::Dash::IndifferentAccess
- Hashie::Extensions::Dash::IndifferentAccess::ClassMethods
- Hashie::Extensions::DeepFetch
- Hashie::Extensions::DeepFetch::UndefinedPathError
- Hashie::Extensions::DeepFind
- Hashie::Extensions::DeepMerge
- Hashie::Extensions::IgnoreUndeclared
- Hashie::Extensions::IndifferentAccess
- Hashie::Extensions::KeyConversion
- Hashie::Extensions::Mash
- Hashie::Extensions::Mash::SafeAssignment
- Hashie::Extensions::MergeInitializer
- Hashie::Extensions::MethodAccess
- Hashie::Extensions::MethodAccessWithOverride
- Hashie::Extensions::MethodOverridingWriter
- Hashie::Extensions::MethodQuery
- Hashie::Extensions::MethodReader
- Hashie::Extensions::MethodWriter
- Hashie::Extensions::Parsers
- Hashie::Extensions::Parsers::YamlErbParser
- Hashie::Extensions::PrettyInspect
- Hashie::Extensions::StringifyKeys
- Hashie::Extensions::StringifyKeys::ClassMethods
- Hashie::Extensions::SymbolizeKeys
- Hashie::Extensions::SymbolizeKeys::ClassMethods
- Hashie::Hash
- Hashie::Mash
- Hashie::Rash
- Hashie::Trash

No matching classes.

# Hashie::Extensions::SymbolizeKeys

### Public Instance Methods

symbolize_keys() click to toggle source

Return a new hash with all keys converted to symbols.

    # File lib/hashie/extensions/symbolize_keys.rb, line 17
    def symbolize_keys
      dup.symbolize_keys!
    end

symbolize_keys!() click to toggle source

Convert all keys in the hash to symbols.

@example

    test = {'abc' => 'def'}
    test.symbolize_keys!
    test # => {:abc => 'def'}

    # File lib/hashie/extensions/symbolize_keys.rb, line 10
    def symbolize_keys!
      SymbolizeKeys.symbolize_keys!(self)
      self
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.