[ruby-core:71328] Re: [Ruby trunk - Feature #10984] Hash#contain? to check whether hash contains other hash

From: Юрий Соколов <funny.falcon@...>
Date: 2015-11-04 03:39:57 UTC
List: ruby-core #71328
What if

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

then

```
h = {a: 2, b: 1}
case h
when {b: 1}
  puts "got it"
end
```


In This Thread

Prev Next