method

colorized_env

rails latest stable - Class: Rails::Console::IRBConsole

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

colorized_env()
public

No documentation available.

# File railties/lib/rails/commands/console/irb_console.rb, line 119
      def colorized_env
        case Rails.env
        when "development"
          IRB::Color.colorize("dev", [:BLUE])
        when "test"
          IRB::Color.colorize("test", [:BLUE])
        when "production"
          IRB::Color.colorize("prod", [:RED])
        else
          Rails.env
        end
      end