X7ROOT File Manager
Current Path:
/opt/alt/ruby22/lib64/ruby/2.2.0/rubygems/package
opt
/
alt
/
ruby22
/
lib64
/
ruby
/
2.2.0
/
rubygems
/
package
/
ðŸ“
..
📄
digest_io.rb
(1.3 KB)
📄
file_source.rb
(569 B)
📄
io_source.rb
(739 B)
📄
old.rb
(3.78 KB)
📄
source.rb
(42 B)
📄
tar_header.rb
(5.49 KB)
ðŸ“
tar_reader
📄
tar_reader.rb
(2.37 KB)
📄
tar_test_case.rb
(3.48 KB)
📄
tar_writer.rb
(6.88 KB)
Editing: file_source.rb
## # The primary source of gems is a file on disk, including all usages # internal to rubygems. # # This is a private class, do not depend on it directly. Instead, pass a path # object to `Gem::Package.new`. class Gem::Package::FileSource < Gem::Package::Source # :nodoc: all attr_reader :path def initialize path @path = path end def start @start ||= File.read path, 20 end def present? File.exist? path end def with_write_io &block open path, 'wb', &block end def with_read_io &block open path, 'rb', &block end end
Upload File
Create Folder