Method: CLI::UI.resolve_color
- Defined in:
- lib/cli/ui.rb
.resolve_color(input) ⇒ Object
Color resolution using CLI::UI::Color.lookup Will lookup using Color.lookup unless it’s already a CLI::UI::Color (or nil)
Attributes
-
input- color to resolve
: (colorable input) -> CLI::UI::Color
51 52 53 54 55 56 57 58 |
# File 'lib/cli/ui.rb', line 51 def resolve_color(input) case input when CLI::UI::Color input else CLI::UI::Color.lookup(input) end end |