Sha256: 6531c1400840aca3ff2d1ef84b76939176ae1b67835077262cc35989b1279665

Contents?: true

Size: 321 Bytes

Versions: 22

Compression:

Stored size: 321 Bytes

Contents

# Aruba
module Aruba
  # Simple colorizer class. Only supports the color cyan
  class Colorizer
    class << self
      attr_accessor :coloring

      alias coloring? coloring
    end

    def cyan(string)
      if self.class.coloring?
        "\e[36m#{string}\e[0m"
      else
        string
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/colorizer.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/colorizer.rb
aruba-2.2.0 lib/aruba/colorizer.rb
aruba-2.1.0 lib/aruba/colorizer.rb
aruba-2.0.1 lib/aruba/colorizer.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/aruba-2.0.0/lib/aruba/colorizer.rb
aruba-2.0.0 lib/aruba/colorizer.rb
aruba-1.1.2 lib/aruba/colorizer.rb
aruba-1.1.1 lib/aruba/colorizer.rb
aruba-1.1.0 lib/aruba/colorizer.rb
aruba-1.0.4 lib/aruba/colorizer.rb
aruba-1.0.3 lib/aruba/colorizer.rb
aruba-1.0.2 lib/aruba/colorizer.rb
aruba-1.0.1 lib/aruba/colorizer.rb
aruba-1.0.0 lib/aruba/colorizer.rb
aruba-0.14.14 lib/aruba/colorizer.rb
aruba-0.14.13 lib/aruba/colorizer.rb
aruba-1.0.0.pre.alpha.5 lib/aruba/colorizer.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/colorizer.rb
aruba-0.14.12 lib/aruba/colorizer.rb