Module: I18nliner::Commands::ColorFormatter
- Defined in:
- lib/i18nliner/commands/color_formatter.rb
Instance Method Summary collapse
Instance Method Details
#green(text) ⇒ Object
8 9 10 |
# File 'lib/i18nliner/commands/color_formatter.rb', line 8 def green(text) "\e[32m#{text}\e[0m" end |
#red(text) ⇒ Object
4 5 6 |
# File 'lib/i18nliner/commands/color_formatter.rb', line 4 def red(text) "\e[31m#{text}\e[0m" end |