Ruby 2.7.0 リファレンスマニュアル > ライブラリ一覧 > rubygems/securityライブラリ > Gem::Security::Signerクラス > key=
key=(key)
鍵をセットします。