Class: Ansi
- Inherits:
-
Object
- Object
- Ansi
- Defined in:
- lib/motion_model/ext.rb
Constant Summary collapse
- ESCAPE =
"\033"
Class Method Summary collapse
- .color(color_constant) ⇒ Object
- .green_color ⇒ Object
- .red_color ⇒ Object
- .reset_color ⇒ Object
- .yellow_color ⇒ Object
Class Method Details
.color(color_constant) ⇒ Object
260 261 262 |
# File 'lib/motion_model/ext.rb', line 260 def self.color(color_constant) "#{ESCAPE}[#{color_constant}m" end |
.green_color ⇒ Object
272 273 274 |
# File 'lib/motion_model/ext.rb', line 272 def self.green_color color 32 end |
.red_color ⇒ Object
276 277 278 |
# File 'lib/motion_model/ext.rb', line 276 def self.red_color color 31 end |
.reset_color ⇒ Object
264 265 266 |
# File 'lib/motion_model/ext.rb', line 264 def self.reset_color color 0 end |
.yellow_color ⇒ Object
268 269 270 |
# File 'lib/motion_model/ext.rb', line 268 def self.yellow_color color 33 end |