class IO
Public Class Methods
binread(name, length = nil, offset = 0)
click to toggle source
# File lib/asciidoctor/core_ext/1.8.7/io/binread.rb, line 1 def IO.binread name, length = nil, offset = 0 File.open name, 'rb' do |f| f.seek offset unless offset == 0 length ? (f.read length) : f.read end end
write(name, string, offset = 0, opts = nil)
click to toggle source
# File lib/asciidoctor/core_ext/1.8.7/io/write.rb, line 1 def IO.write name, string, offset = 0, opts = nil File.open name, 'w' do |f| f.write string end end