class Bundler::Molinillo::NoSuchDependencyError
Ошибка, возникшая при поиске зависимости, которая полностью неизвестна, то есть у которой нет доступных версий.
Атрибуты
dependency[RW]
@return [Object] зависимость, которая не была найдена
required_by[RW]
@return [Array<Object>] спецификации, которые зависели от {#dependency}
Общедоступные методы класса
# File lib/bundler/vendor/molinillo/lib/molinillo/errors.rb, line 19 def initialize(dependency, required_by = []) @dependency = dependency @required_by = required_by.uniq super() end
Инициализирует новую ошибку с указанной отсутствующей зависимостью. @param [Object] dependency @see {#dependency} @param [Array<Object>] required_by @see {#required_by}
Вызывает метод родительского класса
Exception::new Общедоступные методы экземпляра
# File lib/bundler/vendor/molinillo/lib/molinillo/errors.rb, line 27
def message
sources = required_by.map { |r| "`#{r}`" }.join(' and ')
message = "Unable to find a specification for `#{dependency}`"
message += " depended upon by #{sources}" unless sources.empty?
message
end Сообщение об ошибке отсутствующей зависимости, включая спецификации, которые имели эту зависимость.
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.