Class: DidYouMean::VerboseFormatter
- Inherits:
-
Object
- Object
- DidYouMean::VerboseFormatter
- Defined in:
- lib/did_you_mean/formatters/verbose_formatter.rb
Instance Method Summary collapse
Instance Method Details
#message_for(corrections) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/did_you_mean/formatters/verbose_formatter.rb', line 5 def (corrections) return "" if corrections.empty? output = "\n\n Did you mean? ".dup output << corrections.join("\n ") output << "\n " end |