class QuartzTorrent::WriteOnlyIoFacade
An IoFacade
that doesn’t allow reading. This is not part of the public API.
Public Class Methods
new(ioInfo, logger = nil, readError = "Reading is not allowed for this IO")
click to toggle source
Create a new WriteOnlyIoFacade
that delegates to the passed IOInfo
object.
Calls superclass method
QuartzTorrent::IoFacade::new
# File lib/quartz_torrent/reactor.rb, line 319 def initialize(ioInfo, logger = nil, readError = "Reading is not allowed for this IO") super(ioInfo, logger) @readError = readError end
Public Instance Methods
read(length)
click to toggle source
Raise an exception.
# File lib/quartz_torrent/reactor.rb, line 325 def read(length) raise @readError end