Module: Xaases::Color
- Defined in:
- lib/xaases/cli/color.rb
Constant Summary collapse
- @@highline =
HighLine.new
Class Method Summary collapse
Class Method Details
.failure(s = nil) ⇒ Object
15 16 17 |
# File 'lib/xaases/cli/color.rb', line 15 def self.failure(s = nil) puts @@highline.color s || self, :red end |
.red(s = nil) ⇒ Object
19 20 21 |
# File 'lib/xaases/cli/color.rb', line 19 def self.red(s = nil) @@highline.color s || self, :red end |
.warn(s = nil) ⇒ Object
7 8 9 |
# File 'lib/xaases/cli/color.rb', line 7 def self.warn(s = nil) puts @@highline.color s || self, :yellow end |
.yellow(s = nil) ⇒ Object
11 12 13 |
# File 'lib/xaases/cli/color.rb', line 11 def self.yellow(s = nil) @@highline.color s || self, :yellow end |