$49 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby34/share/rubygems/rubygems/package/

HOME
Current File : /opt/alt/ruby34/share/rubygems/rubygems/package//io_source.rb
# frozen_string_literal: true

##
# Supports reading and writing gems from/to a generic IO object.  This is
# useful for other applications built on top of rubygems, such as
# rubygems.org.
#
# This is a private class, do not depend on it directly. Instead, pass an IO
# object to `Gem::Package.new`.

class Gem::Package::IOSource < Gem::Package::Source # :nodoc: all
  attr_reader :io

  def initialize(io)
    @io = io
  end

  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

  def present?
    true
  end

  def with_read_io
    yield io
  ensure
    io.rewind
  end

  def with_write_io
    yield io
  ensure
    io.rewind
  end

  def path
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.34 AM
root / linksafe
0755
tar_reader
--
10 Feb 2026 9.34 AM
root / linksafe
0755
digest_io.rb
1.325 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_source.rb
0.596 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
io_source.rb
0.795 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
old.rb
3.624 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
source.rb
0.07 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
tar_header.rb
6.387 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
tar_reader.rb
1.92 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
tar_writer.rb
7.593 KB
27 Jan 2026 4.00 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF