Method: Command::Results::Formatter::Styler#code_for
- Defined in:
- lib/command-set/formatter/base.rb
#code_for(kind, name) ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/command-set/formatter/base.rb', line 51 def code_for(kind, name) if kind.has_key?(name.to_s) "\e[#{kind[name.to_s]}m" else "" end end |