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.35 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.32 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.31 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.30 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.29 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.28 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.27 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.26 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.25 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.24 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.23 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.22 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.21 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.20 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.19 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.18 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.17 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb
qiita_org-0.1.16 gems/ruby/2.7.0/gems/colorize-0.8.1/lib/colorized_string.rb