class CwCardUtils::DecklistParser::ColorIdentityResolver
Public: Convert color identity arrays to human-readable labels. 日本語: 色アイデンティティの配列をわかりやすい名称へ変換します。
Constants
- COLOR_NAMES
Public Class Methods
Source
# File lib/cw_card_utils/decklist_parser/color_identity_resolver.rb, line 52 def self.resolve(identity) key = identity.sort COLOR_NAMES[key] || key.join("/") end
Public: Resolve a color identity array to a label. 日本語: 色アイデンティティ配列をラベルへ変換します。
@param identity [Array<String>] like [“U”, “W”] @return [String]