Class: MotionTable::Console
- Inherits:
-
Object
- Object
- MotionTable::Console
- Defined in:
- lib/motion-table/console.rb
Overview
Provides coloring for displaying messages in console when running in the simulator
Constant Summary collapse
- NAME =
"MotionTable::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
13 14 15 |
# File 'lib/motion-table/console.rb', line 13 def log(obj, actionNotImplemented:action) log " actionNotImplemented -- the action :#{action} is not implemented in #{obj.class.to_s}", withColor: RED_COLOR end |