るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.055秒)
トップページ > バージョン:2.6.0[x] > クエリ:Gem::Specification[x] > クエリ:ensure_dependency[x]

別のキーワード

  1. specification add_dependency
  2. rubygems/specification add_dependency
  3. specification runtime_dependencies
  4. specification add_runtime_dependency
  5. rubygems/specification runtime_dependencies

ライブラリ

クラス

検索結果

Gem::Installer#ensure_dependency(spec, dependency) -> true (54322.0)

インストールしようとしている Gem が依存関係を満たしている事を確認します。

インストールしようとしている Gem が依存関係を満たしている事を確認します。

依存関係を満たしていない場合は、例外 Gem::InstallError が発生します。

@param spec Gem::Specification のインスタンスを指定します。

@param dependency Gem::Dependency のインスタンスを指定します。

@raise Gem::InstallError 依存関係を満たしていない場合に発生します。