Sha256: 1789d75f046f9a39898deee05a6c2993d05b48e01e1b7327a6297b74ff3de830

Contents?: true

Size: 188 Bytes

Versions: 27

Compression:

Stored size: 188 Bytes

Contents

require "colored"

class Ppl::Adapter::Color::Colored

  def colorize(string, color)
    if Colored::COLORS[color].nil?
      string
    else
      string.send(color)
    end
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ppl-1.18.0 lib/ppl/adapter/color/colored.rb
ppl-1.17.2 lib/ppl/adapter/color/colored.rb
ppl-1.17.1 lib/ppl/adapter/color/colored.rb
ppl-1.17.0 lib/ppl/adapter/color/colored.rb
ppl-1.16.0 lib/ppl/adapter/color/colored.rb
ppl-1.15.1 lib/ppl/adapter/color/colored.rb
ppl-1.15.0 lib/ppl/adapter/color/colored.rb