class Clio::Buffer

Public Class Methods

new() click to toggle source
# File lib/clio/buffer.rb, line 18
def initialize()
  @buffer = []
end

Public Instance Methods

flow() click to toggle source
# File lib/clio/buffer.rb, line 58
def flow
end
line(fill='-') click to toggle source
# File lib/clio/buffer.rb, line 35
def line(fill='-')
  @buffer << Line.new(fill)
end
list(*items) click to toggle source
# File lib/clio/buffer.rb, line 47
def list(*items)
  @buffer << List.new(*items)
end
method_missing(s, *a, &b) click to toggle source
# File lib/clio/buffer.rb, line 67
def method_missing(s, *a, &b)
  @buffer.last.send(s, *a, &b)
end
newline() click to toggle source
# File lib/clio/buffer.rb, line 26
def newline
  @buffer << "\n"
end
Also aliased as: nl
nl()
Alias for: newline
print() click to toggle source
split(left, rite) click to toggle source
# File lib/clio/buffer.rb, line 39
def split(left, rite)
  @buffer << Split.new(left, rite)
end
stack(&block) click to toggle source

def columns(text, number=2) end

# File lib/clio/buffer.rb, line 54
def stack(&block)
  
end
string(str) click to toggle source
# File lib/clio/buffer.rb, line 31
def string(str)
  @buffer << String.new(str)
end
table(*rows_of_cells) click to toggle source
# File lib/clio/buffer.rb, line 43
def table(*rows_of_cells)
  @buffer << Table.new(*rows_of_cells)
end
to_s() click to toggle source
# File lib/clio/buffer.rb, line 22
def to_s
  @buffer.collect{|e| e.to_s}.join('')
end