Module: Tomo::Colors
- Included in:
- Tomo::CLI::Command, Tomo::CLI::Parser, Tomo::CLI::Rules::ValueSwitch, Tomo::Configuration::DSL::ErrorFormatter, Tomo::Console::Menu, Error, Logger, Logger::TaggedIO
- Defined in:
- lib/tomo/colors.rb
Class Attribute Summary collapse
-
.enabled ⇒ Object
writeonly
Sets the attribute enabled.
Class Method Summary collapse
Class Attribute Details
.enabled=(value) ⇒ Object (writeonly)
Sets the attribute enabled
15 16 17 |
# File 'lib/tomo/colors.rb', line 15 def enabled=(value) @enabled = value end |
Class Method Details
.enabled? ⇒ Boolean
17 18 19 20 21 |
# File 'lib/tomo/colors.rb', line 17 def enabled? return @enabled if defined?(@enabled) @enabled = determine_color_support end |