Class: Hash

### Home Classes Methods

### In Files

- lib/http/cookie/ruby_compat.rb

### Parent

Object

### Methods

- ::try_convert

### Files

- LICENSE.txt

### Class/Module Index

Quicksearch

- HTTP
- HTTP::Cookie
- HTTP::Cookie::Scanner
- HTTP::CookieJar
- HTTP::CookieJar::AbstractSaver
- HTTP::CookieJar::AbstractStore
- HTTP::CookieJar::CookiestxtSaver
- HTTP::CookieJar::HashStore
- HTTP::CookieJar::MozillaStore
- HTTP::CookieJar::YAMLSaver
- Array
- Hash
- String

No matching classes.

# Hash

### Public Class Methods

try_convert(object) click to toggle source

    # File lib/http/cookie/ruby_compat.rb, line 21
    def try_convert(object)
      if object.is_a?(Hash) ||
          (object.respond_to?(:to_hash) && (object = object.to_hash).is_a?(Hash))
        object
      else
        nil
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.