class Bogo::Ui::Table::BufferedTable

Wrapper class to get desired buffering

Attributes

buffer[R]

@return [StringIO]

Public Class Methods

new(*args) click to toggle source

Create new instance and init buffer

@return [self]

Calls superclass method
# File lib/bogo/ui/table.rb, line 107
def initialize(*args)
  @buffer = StringIO.new
  super
end

Public Instance Methods

print(string) click to toggle source

buffered print

puts(string) click to toggle source

buffered puts

# File lib/bogo/ui/table.rb, line 113
def puts(string)
  buffer.puts(string)
end