Sha256: 624ada669cbffe0acf6927b4c145af9f6a385d8a84eb5a1d21baf0aa87941f72

Contents?: true

Size: 331 Bytes

Versions: 97

Compression:

Stored size: 331 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

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

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

Version data entries

97 entries across 90 versions & 19 rubygems

Version Path
ory-kratos-client-0.7.5.alpha2 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
mx-platform-ruby-0.4.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
mx-platform-ruby-0.3.2 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
mx-platform-ruby-0.3.1 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.3.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
cocRb-0.1.0 .bundle/ruby/3.0.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
mfk_openapi_ruby_client-1.0.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.2.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.1.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.0.3 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.0.2 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.0.1 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
passbase-1.0.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rainbow-3.0.0/lib/rainbow/global.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb