Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.143.4.96
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ruby /
did_you_mean /
Delete
Unzip
Name
Size
Permission
Date
Action
core_ext
[ DIR ]
drwxr-xr-x
2025-04-16 08:59
formatters
[ DIR ]
drwxr-xr-x
2025-04-16 08:59
spell_checkers
[ DIR ]
drwxr-xr-x
2025-04-16 08:59
experimental.rb
139
B
-rw-r--r--
2025-03-20 13:38
formatter.rb
1.27
KB
-rw-r--r--
2025-03-20 13:38
jaro_winkler.rb
1.76
KB
-rw-r--r--
2025-03-20 13:38
levenshtein.rb
1.34
KB
-rw-r--r--
2025-03-20 13:38
spell_checker.rb
1.27
KB
-rw-r--r--
2025-03-20 13:38
tree_spell_checker.rb
2.81
KB
-rw-r--r--
2025-03-20 13:38
verbose.rb
137
B
-rw-r--r--
2025-03-20 13:38
version.rb
49
B
-rw-r--r--
2025-03-20 13:38
Save
Rename
# frozen-string-literal: true module DidYouMean # The +DidYouMean::Formatter+ is the basic, default formatter for the # gem. The formatter responds to the +message_for+ method and it returns a # human readable string. class Formatter # Returns a human readable string that contains +corrections+. This # formatter is designed to be less verbose to not take too much screen # space while being helpful enough to the user. # # @example # # formatter = DidYouMean::Formatter.new # # # displays suggestions in two lines with the leading empty line # puts formatter.message_for(["methods", "method"]) # # Did you mean? methods # method # # => nil # # # displays an empty line # puts formatter.message_for([]) # # # => nil # def self.message_for(corrections) corrections.empty? ? "" : "\nDid you mean? #{corrections.join("\n ")}" end def message_for(corrections) warn "The instance method #message_for has been deprecated. Please use the class method " \ "DidYouMean::Formatter.message_for(...) instead." self.class.message_for(corrections) end end PlainFormatter = Formatter deprecate_constant :PlainFormatter end