Class: Hash

### Home Classes Methods

### In Files

- lib/rubytter/core_ext.rb

### Parent

Object

### Methods

- #stringify_keys
- #stringify_keys!
- #symbolize_keys
- #symbolize_keys!

### Class/Module Index

Quicksearch

- Rubytter
- Rubytter::Connection
- Rubytter::OAuth
- Hash
- OAuthRubytter

No matching classes.

# Hash

### Public Instance Methods

stringify_keys() click to toggle source

    # File lib/rubytter/core_ext.rb, line 2
    def stringify_keys
      inject({}) do |options, (key, value)|
        options[key.to_s] = value
        options
      end
    end

stringify_keys!() click to toggle source

    # File lib/rubytter/core_ext.rb, line 9
    def stringify_keys!
      keys.each do |key|
        self[key.to_s] = delete(key)
      end
      self
    end

symbolize_keys() click to toggle source

    # File lib/rubytter/core_ext.rb, line 16
    def symbolize_keys
      inject({}) do |options, (key, value)|
        options[(key.to_sym rescue key) || key] = value
        options
      end
    end

symbolize_keys!() click to toggle source

    # File lib/rubytter/core_ext.rb, line 23
    def symbolize_keys!
      self.replace(self.symbolize_keys)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.