W3cubDocs

/Ruby 3

module FileUtils::StreamUtils_

Private Instance Methods

fu_blksize(st) Show source
# File lib/fileutils.rb, line 1185
def fu_blksize(st)
  s = st.blksize
  return nil unless s
  return nil if s == 0
  s
end
fu_default_blksize() Show source
# File lib/fileutils.rb, line 1192
def fu_default_blksize
  1024
end
fu_stream_blksize(*streams) Show source
# File lib/fileutils.rb, line 1176
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
fu_windows?() Show source
# File lib/fileutils.rb, line 1167
def fu_windows?; true end

Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.