Railsチュートリアルの勉強中。
下記が==演算子を再定義している箇所だと思われる。
https://github.com/codahale/bcrypt-ruby/blob/master/lib/bcrypt/password.rb#L64
# Compares a potential secret against the hash. Returns true if the secret is the original secret, false otherwise.
def ==(secret)
super(BCrypt::Engine.hash_secret(secret, @salt))
end
alias_method :is_password?, :==