Module: Rainbow
- Defined in:
- lib/rainbow.rb,
lib/rainbow/color.rb,
lib/rainbow/global.rb,
lib/rainbow/version.rb,
lib/rainbow/wrapper.rb,
lib/rainbow/presenter.rb,
lib/rainbow/ext/string.rb,
lib/rainbow/string_utils.rb,
lib/rainbow/null_presenter.rb
Defined Under Namespace
Modules: Ext
Classes: Color, NullPresenter, Presenter, StringUtils, Wrapper
Constant Summary
collapse
- VERSION =
"1.99.2".freeze
Class Method Summary
collapse
Class Method Details
.enabled ⇒ Object
9
10
11
|
# File 'lib/rainbow/global.rb', line 9
def self.enabled
global.enabled
end
|
.enabled=(value) ⇒ Object
13
14
15
|
# File 'lib/rainbow/global.rb', line 13
def self.enabled=(value)
global.enabled = value
end
|
.global ⇒ Object
5
6
7
|
# File 'lib/rainbow/global.rb', line 5
def self.global
@global ||= Wrapper.new
end
|
.new ⇒ Object
7
8
9
|
# File 'lib/rainbow.rb', line 7
def self.new
Wrapper.new(global.enabled)
end
|