module Verse

Constants

ANSI
NEWLINE
NEWLINE_RE
ParseError
RESET
SPACE
SPACE_RE
VERSION

Public Class Methods

align(text, width, direction, options = {}) click to toggle source

Align a text to a given direction with the width

@see Verse::Alignment#align

@api public

# File lib/verse.rb, line 28
def self.align(text, width, direction, options = {})
  Alignment.align(text, width, direction, options)
end
pad(text, padding, options = {}) click to toggle source

Pad a text around with a given padding

@see Verse::Padding#pad

@api public

# File lib/verse.rb, line 37
def self.pad(text, padding, options = {})
  Padding.pad(text, padding, options)
end
truncate(text, truncate_at, options = {}) click to toggle source

Truncate a text at a given length

@see Verse::Truncation#truncate

@api public

# File lib/verse.rb, line 46
def self.truncate(text, truncate_at, options = {})
  Truncation.truncate(text, truncate_at, options)
end
wrap(text, wrap_at, options = {}) click to toggle source

Wrap a text into lines at wrap length

@see Verse::Wrapping#wrap

@api public

# File lib/verse.rb, line 55
def self.wrap(text, wrap_at, options = {})
  Wrapping.wrap(text, wrap_at, options)
end