Module: Cri::CoreExtensions::String Deprecated

Included in:
String
Defined in:
lib/cri/core_ext/string.rb

Overview

Deprecated.

Instance Method Summary collapse

Instance Method Details

#formatted_as_commandObject


21
22
23
# File 'lib/cri/core_ext/string.rb', line 21

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

#formatted_as_optionObject


26
27
28
# File 'lib/cri/core_ext/string.rb', line 26

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

#formatted_as_titleObject


16
17
18
# File 'lib/cri/core_ext/string.rb', line 16

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

#to_paragraphsObject


6
7
8
# File 'lib/cri/core_ext/string.rb', line 6

def to_paragraphs
  Cri::StringFormatter.new.to_paragraphs(self)
end

#wrap_and_indent(width, indentation) ⇒ Object


11
12
13
# File 'lib/cri/core_ext/string.rb', line 11

def wrap_and_indent(width, indentation)
  Cri::StringFormatter.new.wrap_and_indent(self, width, indentation)
end