Implements many of the output convenience methods of IO. relies on <<
# File lib/zip/ioextras.rb, line 120 def print(*params) self << params.join << $\.to_s end
# File lib/zip/ioextras.rb, line 124 def printf(aFormatString, *params) self << sprintf(aFormatString, *params) end
# File lib/zip/ioextras.rb, line 128 def putc(anObject) self << case anObject when Fixnum then anObject.chr when String then anObject else raise TypeError, "putc: Only Fixnum and String supported" end anObject end
Generated with the Darkfish Rdoc Generator 2.