Sha256: a3b72d507cc15c350f44eba9fa55de5ae4700a5d49be97f3bce73f66f7f3bcdc

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

require_relative 'wrapper'

module Rainbow

  def self.global
    @global ||= Wrapper.new
  end

  def self.enabled
    global.enabled
  end

  def self.enabled=(value)
    global.enabled = value
  end

end

def Rainbow(string)
  Rainbow.global.wrap(string.to_s)
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/rainbow-2.2.2/lib/rainbow/global.rb
rainbow-2.2.2 lib/rainbow/global.rb
rainbow-2.2.1 lib/rainbow/global.rb
rainbow-2.1.0 lib/rainbow/global.rb