Method: Bundler::UI::Shell#warn
- Defined in:
- lib/bundler/ui/shell.rb
#warn(msg = nil, newline = nil, color = :yellow) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/bundler/ui/shell.rb', line 38 def warn(msg = nil, newline = nil, color = :yellow) return unless warn? return if @warning_history.include? msg @warning_history << msg tell_err(msg || yield, color, newline) end |