module Strings

Constants

VERSION

Public Class Methods

align(*args, **kws) click to toggle source

Align text within the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 17
def align(*args, **kws)
  Align.align(*args, **kws)
end
align_center(*args) click to toggle source

Align text with the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 37
def align_center(*args)
  Align.align_center(*args)
end
align_left(*args) click to toggle source

Align text left within the width.

@see Strings::Align#align_left

@api public

# File lib/strings.rb, line 27
def align_left(*args)
  Align.align_left(*args)
end
align_right(*args) click to toggle source

Align text with the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 47
def align_right(*args)
  Align.align_right(*args)
end
ansi?(string) click to toggle source

Check if string contains ANSI codes

@see Strings::ANSI#ansi?

@api public

# File lib/strings.rb, line 57
def ansi?(string)
  ANSI.ansi?(string)
end
fold(*args) click to toggle source

Remove any line break characters from the text

@see Strings::Fold#fold

@api public

# File lib/strings.rb, line 67
def fold(*args)
  Fold.fold(*args)
end
pad(*args) click to toggle source

Apply padding to multiline text with ANSI codes

@see Strings::Pad#pad

@api public

# File lib/strings.rb, line 77
def pad(*args)
  Pad.pad(*args)
end
sanitize(string) click to toggle source

Remove ANSI codes from the string

@see Strings::ANSI#sanitize

@api public

# File lib/strings.rb, line 87
def sanitize(string)
  ANSI.sanitize(string)
end
truncate(*args) click to toggle source

Truncate a text at a given length

@see Strings::Truncate#truncate

@api public

# File lib/strings.rb, line 97
def truncate(*args)
  Truncate.truncate(*args)
end
wrap(*args) click to toggle source

Wrap a text into lines at wrap length

@see Strings::Wrap#wrap

@api public

# File lib/strings.rb, line 107
def wrap(*args)
  Wrap.wrap(*args)
end

Private Instance Methods

align(*args, **kws) click to toggle source

Align text within the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 17
def align(*args, **kws)
  Align.align(*args, **kws)
end
align_center(*args) click to toggle source

Align text with the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 37
def align_center(*args)
  Align.align_center(*args)
end
align_left(*args) click to toggle source

Align text left within the width.

@see Strings::Align#align_left

@api public

# File lib/strings.rb, line 27
def align_left(*args)
  Align.align_left(*args)
end
align_right(*args) click to toggle source

Align text with the width.

@see Strings::Align#align

@api public

# File lib/strings.rb, line 47
def align_right(*args)
  Align.align_right(*args)
end
ansi?(string) click to toggle source

Check if string contains ANSI codes

@see Strings::ANSI#ansi?

@api public

# File lib/strings.rb, line 57
def ansi?(string)
  ANSI.ansi?(string)
end
fold(*args) click to toggle source

Remove any line break characters from the text

@see Strings::Fold#fold

@api public

# File lib/strings.rb, line 67
def fold(*args)
  Fold.fold(*args)
end
pad(*args) click to toggle source

Apply padding to multiline text with ANSI codes

@see Strings::Pad#pad

@api public

# File lib/strings.rb, line 77
def pad(*args)
  Pad.pad(*args)
end
sanitize(string) click to toggle source

Remove ANSI codes from the string

@see Strings::ANSI#sanitize

@api public

# File lib/strings.rb, line 87
def sanitize(string)
  ANSI.sanitize(string)
end
truncate(*args) click to toggle source

Truncate a text at a given length

@see Strings::Truncate#truncate

@api public

# File lib/strings.rb, line 97
def truncate(*args)
  Truncate.truncate(*args)
end
wrap(*args) click to toggle source

Wrap a text into lines at wrap length

@see Strings::Wrap#wrap

@api public

# File lib/strings.rb, line 107
def wrap(*args)
  Wrap.wrap(*args)
end