Ruby 4.0 リファレンスマニュアル

instance method Gem::Dependency#name

name -> StringRuby 1.9.3 から[permalink][rdoc][edit]

依存関係の名前を文字列か正規表現で返します。