Module: Bundler::FileUtils::StreamUtils_
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Extended In:
| |
Included In:
| |
Defined in: | lib/bundler/vendor/fileutils/lib/fileutils.rb |
Instance Method Summary
- #fu_blksize(st) private
- #fu_default_blksize private
- #fu_stream_blksize(*streams) private
- #fu_copy_stream0(src, dest, blksize = nil) private Internal use only
Instance Method Details
#fu_blksize(st) (private)
[ GitHub ]# File 'lib/bundler/vendor/fileutils/lib/fileutils.rb', line 2054
def fu_blksize(st) s = st.blksize return nil unless s return nil if s == 0 s end
#fu_copy_stream0(src, dest, blksize = nil) (private)
This method is for internal use only.
[ GitHub ]
# File 'lib/bundler/vendor/fileutils/lib/fileutils.rb', line 2041
def fu_copy_stream0(src, dest, blksize = nil) #:nodoc: IO.copy_stream(src, dest) end
#fu_default_blksize (private)
[ GitHub ]# File 'lib/bundler/vendor/fileutils/lib/fileutils.rb', line 2061
def fu_default_blksize 1024 end
#fu_stream_blksize(*streams) (private)
[ GitHub ]# File 'lib/bundler/vendor/fileutils/lib/fileutils.rb', line 2045
def fu_stream_blksize(*streams) streams.each do |s| next unless s.respond_to?(:stat) size = fu_blksize(s.stat) return size if size end fu_default_blksize() end