D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
DidYouMean
/
PlainFormatter
/
Filename :
message_for-c.ri
back
Copy
U:RDoc::AnyMethod[iI"message_for:ETI"'DidYouMean::Formatter::message_for;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"GReturns a human readable string that contains +corrections+. This ;TI"Jformatter is designed to be less verbose to not take too much screen ;TI"2space while being helpful enough to the user.;To:RDoc::Markup::BlankLine o; ; [I" @example;T@o:RDoc::Markup::Verbatim; [I"+formatter = DidYouMean::Formatter.new ;TI" ;TI"E# displays suggestions in two lines with the leading empty line ;TI"7puts formatter.message_for(["methods", "method"]) ;TI" ;TI"Did you mean? methods ;TI" method ;TI"# => nil ;TI" ;TI"# displays an empty line ;TI"$puts formatter.message_for([]) ;TI" ;TI" # => nil;T:@format0: @fileI""lib/did_you_mean/formatter.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(corrections);T@#FI"Formatter;TcRDoc::NormalClass00