[Source]
# File lib/clio/buffer.rb, line 18 def initialize() @buffer = [] end
# File lib/clio/buffer.rb, line 58 def flow end
# File lib/clio/buffer.rb, line 35 def line(fill='-') @buffer << Line.new(fill) end
# File lib/clio/buffer.rb, line 47 def list(*items) @buffer << List.new(*items) end
# File lib/clio/buffer.rb, line 67 def method_missing(s, *a, &b) @buffer.last.send(s, *a, &b) end
# File lib/clio/buffer.rb, line 26 def newline @buffer << "\n" end
Alias for newline
# File lib/clio/buffer.rb, line 61 def print Kernel.print(to_s) @buffer = [] end
# File lib/clio/buffer.rb, line 39 def split(left, rite) @buffer << Split.new(left, rite) end
def columns(text, number=2) end
# File lib/clio/buffer.rb, line 54 def stack(&block) end
# File lib/clio/buffer.rb, line 31 def string(str) @buffer << String.new(str) end
# File lib/clio/buffer.rb, line 43 def table(*rows_of_cells) @buffer << Table.new(*rows_of_cells) end
# File lib/clio/buffer.rb, line 22 def to_s @buffer.collect{|e| e.to_s}.join('') end
[Validate]