GRAYBYTE WORDPRESS FILE MANAGER5743

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby32/share/ruby/did_you_mean/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby32/share/ruby/did_you_mean//formatter.rb
# 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

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:35:42
root / linksafe
0755
core_ext
--
May 13 2025 08:35:38
root / linksafe
0755
formatters
--
May 13 2025 08:35:38
root / linksafe
0755
spell_checkers
--
May 13 2025 08:35:38
root / linksafe
0755
experimental.rb
0.136 KB
April 24 2025 07:53:45
root / linksafe
0644
formatter.rb
1.273 KB
April 24 2025 07:53:45
root / linksafe
0644
jaro_winkler.rb
1.79 KB
April 24 2025 07:53:45
root / linksafe
0644
levenshtein.rb
1.343 KB
April 24 2025 07:53:45
root / linksafe
0644
spell_checker.rb
1.267 KB
April 24 2025 07:53:45
root / linksafe
0644
tree_spell_checker.rb
2.806 KB
April 24 2025 07:53:45
root / linksafe
0644
verbose.rb
0.134 KB
April 24 2025 07:53:45
root / linksafe
0644
version.rb
0.048 KB
April 24 2025 07:53:45
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF