當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Ruby VersionConflict.message_with_trees用法及代碼示例

本文簡要介紹ruby語言中Gem::Resolver::Molinillo::VersionConflict.message_with_trees的用法。

用法

message_with_trees(opts = {})

@return [String] 包含需求樹的錯誤消息,

which is much more detailed & customizable than the default message

@param [Hash] 選擇創建消息的選項。 @option opts [String]:solver_name user-facing 求解器的名稱 @option opts [String]:possibility_type 可能性的通用名稱 @option opts [Proc]:reduce_trees 減少列表的 proc需求樹的數量 @option opts [Proc]:printable_requirement pretty-prints requirements @option opts [Proc]:additional_message_for_conflict 附加附加的 proc

messages for each conflict

@option opts [Proc]:version_for_spec 返回版本號的過程

possibility

相關用法


注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 VersionConflict.message_with_trees。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。