module FileUtils::StreamUtils_
Private Instance Methods
# File lib/fileutils.rb, line 1191 def fu_blksize(st) s = st.blksize return nil unless s return nil if s == 0 s end
# File lib/fileutils.rb, line 1198 def fu_default_blksize 1024 end
# File lib/fileutils.rb, line 1182 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
# File lib/fileutils.rb, line 1174 def fu_windows? /mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM end
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.