Class: ProMotion::Console
- Inherits:
-
Object
- Object
- ProMotion::Console
- Defined in:
- lib/ProMotion/helpers/console.rb
Constant Summary collapse
- NAME =
"RubyMotion::Console: "
- DEFAULT_COLOR =
[ '', '' ]
- RED_COLOR =
Must be in double quotes
[ "\e[0;31m", "\e[0m" ]
- GREEN_COLOR =
[ "\e[0;32m", "\e[0m" ]
- PURPLE_COLOR =
[ "\e[0;35m", "\e[0m" ]
Class Method Summary collapse
Class Method Details
.log(log) ⇒ Object
10 11 12 13 14 |
# File 'lib/ProMotion/helpers/console.rb', line 10 def log(log, with_color:color) return if RUBYMOTION_ENV == "test" PM.logger.deprecated "ProMotion::Console.log is deprecated. Use PM.logger (see README)" puts color[0] + NAME + log + color[1] end |