Class: Socksify::Color

Inherits:
Object
  • Object
show all
Defined in:
lib/socksify/debug.rb

Direct Known Subclasses

Green, Red, Yellow

Defined Under Namespace

Classes: Green, Red, Reset, Yellow

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to_sObject


19
20
21
# File 'lib/socksify/debug.rb', line 19

def self::to_s
  new.to_s
end

Instance Method Details

#to_sObject


23
24
25
# File 'lib/socksify/debug.rb', line 23

def to_s
  "\e[1m\e[#{num}m"
end