StringIO
This class is a version of StringIO that always uses the binary encoding on any Ruby platform that has a notion of encodings. On Ruby platforms without encoding support, this class is equivalent to StringIO.
Creates a new instance of this class.
This takes all the arguments of StringIO.new.
# File lib/archive/support/binary_stringio.rb, line 11 def initialize(*args) super # Force a binary encoding when possible. if respond_to?(:set_encoding, true) set_encoding('binary') end end
Generated with the Darkfish Rdoc Generator 2.