Implements many of the output convenience methods of IO. relies on <<
# File lib/zip/ioextras/abstract_output_stream.rb, line 14 def print(*params) self << params.join($,) << $\.to_s end
# File lib/zip/ioextras/abstract_output_stream.rb, line 18 def printf(a_format_string, *params) self << sprintf(a_format_string, *params) end
# File lib/zip/ioextras/abstract_output_stream.rb, line 22 def putc(an_object) self << case an_object when Fixnum an_object.chr when String an_object else raise TypeError, 'putc: Only Fixnum and String supported' end an_object end
Generated with the Darkfish Rdoc Generator 2.