Classes: Wrapper
6 7 8 9 10 11 12 13
# File 'lib/stupidedi/color.rb', line 6 def self.ansi @__ansi ||= if defined?(::Term::ANSIColor) Wrapper.new(::Term::ANSIColor) else Wrapper.new(Stub) end end
15 16 17
# File 'lib/stupidedi/color.rb', line 15 def ansi Color.ansi end