Module: RBoss::Colorizers
- Defined in:
- lib/rboss/view/colorizers.rb
Overview
A module that holds the colorizers
Class Method Summary collapse
-
.type(type) ⇒ Object
A colorizer for the types returned by invocations in jboss-cli.
Class Method Details
.type(type) ⇒ Object
A colorizer for the types returned by invocations in jboss-cli.
Parameter:
The type to use the color
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rboss/view/colorizers.rb', line 16 def self.type type Yummi::to_colorize do |ctx| case type when RBoss::Cli::ResultParser::STRING then :green when RBoss::Cli::ResultParser::INT, RBoss::Cli::ResultParser::LONG then :blue when RBoss::Cli::ResultParser::BOOLEAN then :magenta else :cyan end end end |