Method: Commander::UI.say_warning
- Defined in:
- lib/commander/user_interaction.rb
.say_warning(*args) ⇒ Object
‘Say’ something using the WARNING color (yellow).
Examples
say_warning 'This is a warning'
say_warning 'Be careful', 'Think about it'
83 84 85 86 87 |
# File 'lib/commander/user_interaction.rb', line 83 def say_warning *args args.each do |arg| say $terminal.color(arg, :yellow) end end |