Module: Stupidedi::Color
Defined Under Namespace
Modules: Stub
Classes: Wrapper
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
4
5
6
7
8
9
10
11
|
# File 'lib/stupidedi/color.rb', line 4
def self.ansi
@__ansi ||=
if defined?(::Term::ANSIColor)
Wrapper.new(::Term::ANSIColor)
else
Wrapper.new(Stub)
end
end
|
Instance Method Details
13
14
15
|
# File 'lib/stupidedi/color.rb', line 13
def ansi
Color.ansi
end
|