Method: UnicodePlot::IOContext#color?
- Defined in:
- lib/unicode_plot/io_context.rb
#color? ⇒ Boolean
14 15 16 17 18 19 20 21 |
# File 'lib/unicode_plot/io_context.rb', line 14 def color? case @color when :auto @io.respond_to?(:tty?) ? @io.tty? : false else @color end end |