h = { :a => 1, :b => 2 }h.key?(:a) # true: :a is a key in hh.has_key?(:b) # true: has_key? is a synonym for key?h.include?(:c) # false: include? is another synonymh.member?(:d) # false: member? is yet another synonym