rapportive-oss/ampex — pull request #1 by hannesg (2012-09-18 18:02:06+00:00)
Title: Added support for '==='.

Hi

I know this change is not 100% backward compatible, but the syntax is very tempting. I've implemented `===` on `Metavariable` so that it can be used as a target for `when`. Look a this example:

```ruby
case( something )
when X.respond_to? :foo then "something responds to :foo"
when X.kind_of? Hash then "something is a Hash"
end
```

I think this would be a really cool feature, wouldn't it?

Cheers'
Hannes