Module: XCPretty::Term
- Defined in:
- lib/xcpretty/term.rb
Class Method Summary collapse
Class Method Details
.color? ⇒ Boolean
9 10 11 |
# File 'lib/xcpretty/term.rb', line 9 def self.color? STDOUT.tty? end |
.unicode? ⇒ Boolean
5 6 7 |
# File 'lib/xcpretty/term.rb', line 5 def self.unicode? Encoding.default_external == Encoding::UTF_8 end |