Sha256: dcc4557e737fcea41ba9939a768982a415c2f2bb8024c99a19b8f6115012ac92

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

module Yardcheck
  module Color
    private

    def color(code, text)
      "\e[#{code}m#{text}\e[0m"
    end

    def blue(text)
      color(34, text)
    end

    def red(text)
      color(31, text)
    end

    def yellow(text)
      color(33, text)
    end

    def grey(text)
      color(30, text)
    end
  end # Color
end # Yardcheck

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardcheck-0.0.3 lib/yardcheck/color.rb
yardcheck-0.0.2 lib/yardcheck/color.rb
yardcheck-0.0.1 lib/yardcheck/color.rb