Module: GDK::Output
- Extended by:
- ClassMethods
- Includes:
- ClassMethods
- Included in:
- OutputBuffered
- Defined in:
- lib/gdk/output.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- COLOR_CODE_RED =
'31'- COLOR_CODE_GREEN =
'32'- COLOR_CODE_YELLOW =
'33'- COLOR_CODE_BLUE =
'34'- COLORS =
{ red: COLOR_CODE_RED, green: COLOR_CODE_GREEN, yellow: COLOR_CODE_YELLOW, blue: COLOR_CODE_BLUE, magenta: '35', cyan: '36', bright_red: '31;1', bright_green: '32;1', bright_yellow: '33;1', bright_blue: '34;1', bright_magenta: '35;1', bright_cyan: '36;1' }.freeze
- ICONS =
{ info: "\u2139\ufe0f ", # requires an extra space success: "\u2705\ufe0f", warning: "\u26A0\ufe0f ", # requires an extra space error: "\u274C\ufe0f", debug: "\u26CF\ufe0f " # requires an extra space }.freeze
Method Summary
Methods included from ClassMethods
abort, ansi, color, colorize?, debug, divider, ensure_utf8, error, force_encode_utf8, format_error, icon, info, interactive?, notice, notice_format, print, prompt, puts, reset_color, stderr_handle, stdout_handle, success, warn, wrap_in_color