Sha256: df58fa9e3421811a9552edb328cad9a47bb130c670d00ec15bae54fe912d4fc4

Contents?: true

Size: 1.03 KB

Versions: 6519

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,519 entries across 6,519 versions & 34 rubygems

Version Path
cybrid_api_bank_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_bank_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_bank_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_bank_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_bank_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_bank_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_id_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb
cybrid_api_organization_ruby-0.122.41 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow/ext/string.rb