Method: Kafo::KafoConfigure.use_colors?
- Defined in:
- lib/kafo/kafo_configure.rb
.use_colors? ⇒ Boolean
78 79 80 81 82 83 84 85 86 |
# File 'lib/kafo/kafo_configure.rb', line 78 def use_colors? if config colors = config.app[:colors] else colors = ARGV.include?('--no-colors') ? false : nil colors = ARGV.include?('--colors') ? true : nil if colors.nil? end colors end |