Sha256: 893b8cc1ea0fff6dd99501039163c87904c8917e1636d6c877d14ac8d05ba7a6

Contents?: true

Size: 82 Bytes

Versions: 15

Compression:

Stored size: 82 Bytes

Contents

class Hash
  def subhash?(hash)
    each_pair.all?{|k, v| hash[k] == v}
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyperion_http-0.6.0 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.5.0 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.3.0 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.2.4 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.2.3 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.2.2 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.2.1 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.9 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.8 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.7 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.6 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.5 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.4 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.3 lib/hyperion/aux/hash_ext.rb
hyperion_http-0.1.2 lib/hyperion/aux/hash_ext.rb