module Stringex::StringExtensions::PublicInstanceMethods

def to_url(options = {})

but can be called manually in order to generate an URI-friendly version of any string.
acts_as_url[link:classes/Stringex/ActsAsUrl/ClassMethods.html#M000012]
Create a URI-friendly representation of the string. This is used internally by
def to_url(options = {})
  return self if options[:exclude] && options[:exclude].include?(self)
  options = stringex_default_options.merge(options)
  whitespace_replacement_token = options[:replace_whitespace_with]
  dummy = remove_formatting(options).
            replace_whitespace(whitespace_replacement_token).
            collapse(whitespace_replacement_token).
            limit(options[:limit], options[:truncate_words], whitespace_replacement_token)
  dummy.downcase! unless options[:force_downcase] == false
  dummy
end