Sha256: 59a4ec599a876c992940600f1f9080e1abd05029e0f234fa372aa8680a9553b7

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

require 'rainbow/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

5 entries across 5 versions & 2 rubygems

Version Path
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/rainbow-2.0.0/lib/rainbow/global.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/rainbow-2.0.0/lib/rainbow/global.rb
rainbow-2.0.0 lib/rainbow/global.rb
rainbow-1.99.2 lib/rainbow/global.rb
rainbow-1.99.1 lib/rainbow/global.rb