Sha256: 2213054dca2d20618d9fd548f6a180d81d77a3908eaa93ffe68351e71e6519f2

Contents?: true

Size: 886 Bytes

Versions: 1

Compression:

Stored size: 886 Bytes

Contents

# encoding: utf-8

require 'colored'

module Cri
  module CoreExtensions
    # @deprecated
    module String
      # @see Cri::StringFormatter#to_paragraphs
      def to_paragraphs
        Cri::StringFormatter.new.to_paragraphs(self)
      end

      # @see Cri::StringFormatter#to_paragraphs
      def wrap_and_indent(width, indentation)
        Cri::StringFormatter.new.wrap_and_indent(self, width, indentation)
      end

      # @see Cri::StringFormatter#format_as_title
      def formatted_as_title
        Cri::StringFormatter.new.format_as_title(self)
      end

      # @see Cri::StringFormatter#format_as_command
      def formatted_as_command
        Cri::StringFormatter.new.format_as_command(self)
      end

      # @see Cri::StringFormatter#format_as_option
      def formatted_as_option
        Cri::StringFormatter.new.format_as_option(self)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cri-2.7.0 lib/cri/core_ext/string.rb