Class: String

Inherits:
Object show all
Defined in:
lib/colored.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.colors_disabledObject

Returns the value of attribute colors_disabled.



85
86
87
# File 'lib/colored.rb', line 85

def colors_disabled
  @colors_disabled
end

Class Method Details

.disable_colorsObject



90
91
92
# File 'lib/colored.rb', line 90

def disable_colors
  self.colors_disabled = true
end

.enable_colorsObject



87
88
89
# File 'lib/colored.rb', line 87

def enable_colors
  self.colors_disabled = false
end