Sha256: 7e6f53a0e7acbc7d5758dbc18da0253d250ee0a43060dec2cfec6a77316a54c7

Contents?: true

Size: 830 Bytes

Versions: 1

Compression:

Stored size: 830 Bytes

Contents

# encoding: utf-8

require 'colored'

module Cri::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

Version data entries

1 entries across 1 versions & 1 rubygems

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