Sha256: df58fa9e3421811a9552edb328cad9a47bb130c670d00ec15bae54fe912d4fc4

Contents?: true

Size: 1.03 KB

Versions: 6847

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'rainbow'

module Rainbow
  module Ext
    module String
      module InstanceMethods
        def foreground(*color)
          Rainbow(self).foreground(*color)
        end

        alias color foreground
        alias colour foreground

        def background(*color)
          Rainbow(self).background(*color)
        end

        def reset
          Rainbow(self).reset
        end

        def bright
          Rainbow(self).bright
        end

        def faint
          Rainbow(self).faint
        end

        def italic
          Rainbow(self).italic
        end

        def underline
          Rainbow(self).underline
        end

        def blink
          Rainbow(self).blink
        end

        def inverse
          Rainbow(self).inverse
        end

        def hide
          Rainbow(self).hide
        end

        def cross_out
          Rainbow(self).cross_out
        end

        alias strike cross_out
      end
    end
  end
end

class String
  include Rainbow::Ext::String::InstanceMethods
end

Version data entries

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

Version Path
ory-client-0.0.1.alpha118 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha117 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha116 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha115 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-keto-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha113 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha112 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha111 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha110 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha109 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
avalara_sdk-2.4.26 vendor/bundle/ruby/2.6.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha108 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-oathkeeper-client-0.38.23.beta1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-oathkeeper-client-0.38.22.beta1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha107 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-hydra-client-1.11.7 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha106 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-hydra-client-1.11.6 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-keto-client-0.8.0.alpha1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-0.0.1.alpha105 vendor/bundle/ruby/2.5.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb