Sha256: deb6e593d6deb56639211e9f3c8526b6558af7036149549f375391d0080ffade

Contents?: true

Size: 157 Bytes

Versions: 47

Compression:

Stored size: 157 Bytes

Contents

unless Hash.respond_to? :try_convert
  require 'backports/tools/arguments'

  def Hash.try_convert(x)
    Backports.try_convert(x, Hash, :to_hash)
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
backports-3.6.7 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.6 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.5 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.4 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.3 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.2 lib/backports/1.9.1/hash/try_convert.rb
backports-3.6.1 lib/backports/1.9.1/hash/try_convert.rb