I have been using has_key?(value) to check if the hash has any particular key.
But I came across the include?(value) in the below stackexchange post
How do I extract a sub-hash from a hash?
Can somebody explain whether both has_key and include are aliases for same ruby’s in built methods as mentioned in the below blog page?
proposal-for-a-better-ruby-hash
Btw, both seem to work in ruby 2.1.6.