Sha256: 64dbecd13a8979ed5a10479d7aa033e904f90eeac75bfcc79be2da53e8cb8a76

Contents?: true

Size: 465 Bytes

Versions: 49

Compression:

Stored size: 465 Bytes

Contents

require File.expand_path('colorize/class_methods', File.dirname(__FILE__))
require File.expand_path('colorize/instance_methods', File.dirname(__FILE__))
#
# ColorizedString class extension.
#
class ColorizedString < String
  extend Colorize::ClassMethods
  include Colorize::InstanceMethods

  color_methods
  modes_methods

  #
  # Sortcut to create ColorizedString with ColorizedString['test'].
  #
  def self.[](string)
    ColorizedString.new(string)
  end
end

Version data entries

49 entries across 49 versions & 6 rubygems

Version Path
qiita_org-0.1.15 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.14 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.13 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.12 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.11 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.10 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.9 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
lotrd-0.1.9 vendor/cache/ruby/2.6.0/gems/colorize-0.8.1/lib/colorized_string.rb
lotrd-0.1.8 vendor/cache/ruby/2.6.0/gems/colorize-0.8.1/lib/colorized_string.rb
lotrd-0.1.6 vendor/cache/ruby/2.6.0/gems/colorize-0.8.1/lib/colorized_string.rb
lotrd-0.1.5 vendor/cache/ruby/2.6.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.8 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.7 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.6 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.5 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.4 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.3 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.2 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.1 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.0 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb