class Shellout::Paragraph

Public Class Methods

new(str) click to toggle source
# File lib/shellout/paragraph.rb, line 4
def initialize(str)
  @str = str
  @padding = 0
  @width   = 80
end

Public Instance Methods

padding(width) click to toggle source
# File lib/shellout/paragraph.rb, line 15
def padding(width)
  @padding = width
  self
end
print(out=$stdout) click to toggle source
width(width) click to toggle source
# File lib/shellout/paragraph.rb, line 10
def width(width)
  @width = width
  self
end