    # File lib/facets/core/string/self/patterns.rb, line 14
      def self.patterns( pattern )
        case pattern
        when :char, :chars, :character, :characters
          pattern = //
        when :word, :words
          pattern = /\s+|\Z/
        when :line, :lines
          pattern = /\Z/
        when String
          pattern = Regexp.new(Regexp.escape(pattern))
        end
        pattern
      end