I could not find usage about in here https://docs.ruby-lang.org/en/master/index.html,
but it seems to be supported.
h = {a: 1}
:a in h # => true
2 in 1..3 # => true
How does it work? Is there any special method I can override like == or [] ?