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-3.0.1 lib/ppl/adapter/color/colored.rb
ppl-3.0.0 lib/ppl/adapter/color/colored.rb
ppl-2.4.1 lib/ppl/adapter/color/colored.rb
ppl-2.4.0 lib/ppl/adapter/color/colored.rb
ppl-2.3.3 lib/ppl/adapter/color/colored.rb
ppl-2.3.2 lib/ppl/adapter/color/colored.rb
ppl-2.3.1 lib/ppl/adapter/color/colored.rb
ppl-2.3.0 lib/ppl/adapter/color/colored.rb
ppl-2.2.0 lib/ppl/adapter/color/colored.rb
ppl-2.1.0 lib/ppl/adapter/color/colored.rb
ppl-2.0.0 lib/ppl/adapter/color/colored.rb
ppl-1.25.0 lib/ppl/adapter/color/colored.rb
ppl-1.24.0 lib/ppl/adapter/color/colored.rb
ppl-1.23.0 lib/ppl/adapter/color/colored.rb
ppl-1.22.2 lib/ppl/adapter/color/colored.rb
ppl-1.22.1 lib/ppl/adapter/color/colored.rb
ppl-1.22.0 lib/ppl/adapter/color/colored.rb
ppl-1.21.0 lib/ppl/adapter/color/colored.rb
ppl-1.20.0 lib/ppl/adapter/color/colored.rb
ppl-1.19.0 lib/ppl/adapter/color/colored.rb