Sha256: 27bfa9e0ea220f70bfe3b5b13eb52ebd3531f6cb26b27f7e88652933a05b3350

Contents?: true

Size: 362 Bytes

Versions: 6802

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

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

  def self.uncolor(string)
    StringUtils.uncolor(string)
  end
end

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

Version data entries

6,802 entries across 6,802 versions & 35 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow/global.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/global.rb