Sha256: 5345700c0f3ae37646bda550c86824bbad982e1f954b06f4fbbac248a174a5c3

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

class PgExport
  module ColourableString
    refine String do
      def red
        "\e[31m#{self}\e[0m"
      end

      def green
        "\e[0;32;49m#{self}\e[0m"
      end

      def gray
        "\e[37m#{self}\e[0m"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-0.5.1 lib/pg_export/includable_modules/colourable_string.rb
pg_export-0.5.0 lib/pg_export/includable_modules/colourable_string.rb