From: "Юрий Соколов" Date: 2015-11-04T06:39:57+03:00 Subject: [ruby-core:71328] Re: [Ruby trunk - Feature #10984] Hash#contain? to check whether hash contains other hash --047d7b3a82eaa5d4f80523aec3b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable What if ``` {b: 1} =3D=3D=3D {a: 2, b: 1} ``` then ``` h =3D {a: 2, b: 1} case h when {b: 1} puts "got it" end ``` =F0=9F=98=81=F0=9F=98=83=F0=9F=98=84=F0=9F=98=88 --047d7b3a82eaa5d4f80523aec3b3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

What if

```
{b: 1} =3D=3D=3D {a: 2, b: 1}
```

then

```
h =3D {a: 2, b: 1}
case h
when {b: 1}
=C2=A0 puts "got it"
end
```
=F0=9F=98=81=F0=9F=98=83=F0=9F=98=84=F0=9F=98=88

--047d7b3a82eaa5d4f80523aec3b3--