Sha256: a82e1c84f8c927b8e66a478d8de7e52fea3ea06782a99634002f304a1f835a68

Contents?: true

Size: 298 Bytes

Versions: 6846

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

require_relative 'rainbow/global'

module Rainbow
  def self.new
    Wrapper.new(global.enabled)
  end

  self.enabled = false unless STDOUT.tty? && STDERR.tty?
  self.enabled = false if ENV['TERM'] == 'dumb'
  self.enabled = true if ENV['CLICOLOR_FORCE'] == '1'
end

Version data entries

6,846 entries across 6,846 versions & 36 rubygems

Version Path
ory-client-0.0.1.alpha85 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha84 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha83 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha82 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha81 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha80 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha79 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha78 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha77 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha76 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha75 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha74 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha73 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha72 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha71 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha70 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha69 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha68 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha67 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-0.0.1.alpha66 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow.rb