Sha256: 2749a269f620bd06782c383c8a0093c0352e83d37008c12bc80aabacbb7be7f8

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

require 'term/ansicolor'

module Inch
  module StringExt
    def color(color_name)
      Term::ANSIColor.color(color_name, self)
    end

    def on_color(color_name)
      Term::ANSIColor.on_color(color_name, self)
    end
  end
end

String.send(:include, Inch::StringExt)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inch-0.8.0.rc1 lib/inch/core_ext/string.rb