class Kojak::Printer

Internal: Abstract design of a printing class.

This is just a stub with documentation, implement actual printers in inherited classes.

Public Instance Methods

puts(s, *args) click to toggle source

Public: Writes given string and a newline.

s - The String to print. args - The Array with interpolation arguments.

Should return number of writen characters.

# File lib/kojak/printer.rb, line 15
def puts(s, *args)
  write("#{s}\n", *args)
end
write(s, *args) click to toggle source

Public: Writes given string to the output.

s - The String to print. args - The Array with interpolation arguments.

Should return number of written characters.

# File lib/kojak/printer.rb, line 25
def write(s, *args)
end