Sha256: 534b07d2e579d3824091bad88c292e59062f6510ada8ed6eb30c14453341eb0c

Contents?: true

Size: 867 Bytes

Versions: 6

Compression:

Stored size: 867 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
cri-2.10.1 lib/cri/core_ext/string.rb
cri-2.10.0 lib/cri/core_ext/string.rb
cri-2.9.1 lib/cri/core_ext/string.rb
cri-2.9.0 lib/cri/core_ext/string.rb
cri-2.8.0 lib/cri/core_ext/string.rb
cri-2.7.1 lib/cri/core_ext/string.rb