Sha256: 42355f2b747571ff343238b5db57e7db85f4ae6f4ae3c4378456e47386a88697

Contents?: true

Size: 264 Bytes

Versions: 9

Compression:

Stored size: 264 Bytes

Contents

module SaferRailsConsole
  module Colors
    NONE = 0
    BLACK = 30
    RED = 31
    GREEN = 32
    YELLOW = 33
    BLUE = 34
    PINK = 35
    CYAN = 36
    WHITE = 37

    def color_text(text, color_code)
      "\e[#{color_code}m#{text}\e[0m"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
safer_rails_console-0.4.1 lib/safer_rails_console/colors.rb
safer_rails_console-0.4.0 lib/safer_rails_console/colors.rb
safer_rails_console-0.3.0 lib/safer_rails_console/colors.rb
safer_rails_console-0.2.0 lib/safer_rails_console/colors.rb
safer_rails_console-0.1.4 lib/safer_rails_console/colors.rb
safer_rails_console-0.1.3 lib/safer_rails_console/colors.rb
safer_rails_console-0.1.2 lib/safer_rails_console/colors.rb
safer_rails_console-0.1.1 lib/safer_rails_console/colors.rb
safer_rails_console-0.1.0 lib/safer_rails_console/colors.rb