class Binstream::Streams::StringReader
Public Class Methods
new(path_or_io, **kwargs)
click to toggle source
Calls superclass method
Binstream::Streams::Base::new
# File lib/binstream/streams/string_reader.rb, line 5 def initialize(path_or_io, **kwargs) if path_or_io.is_a?(::StringIO) super(path_or_io, **kwargs) else super(::StringIO.new(path_or_io, "rb"), **kwargs) end end