Method: CLI::UI.fmt
- Defined in:
- lib/cli/ui.rb
.fmt(input, enable_color: enable_color?) ) ⇒ Object
Convenience Method to format text using CLI::UI::Formatter.format Check CLI::UI::Formatter::SGR_MAP for available formatting options

Attributes
-
input- input to format
Options
-
enable_color- should color be used? default to true unless output is redirected.
: (String input, ?enable_color: bool) -> String
156 157 158 |
# File 'lib/cli/ui.rb', line 156 def fmt(input, enable_color: enable_color?) CLI::UI::Formatter.new(input).format(enable_color: enable_color) end |