method
start
v2_4_6 -
Show latest stable
- Class:
Gem::Package::IOSource
start()public
No documentation available.
# File lib/rubygems/package/io_source.rb, line 18
def start
@start ||= begin
if io.pos > 0
raise Gem::Package::Error, "Cannot read start unless IO is at start"
end
value = io.read 20
io.rewind
value
end
end