class Puma::NullIO
Provides an IO-like object that always appears to contain no data. Used as the value for rack.input when the request has no body.
Public Instance Methods
close()
click to toggle source
# File lib/puma/null_io.rb, line 27 def close end
each()
click to toggle source
# File lib/puma/null_io.rb, line 15 def each end
eof?()
click to toggle source
# File lib/puma/null_io.rb, line 34 def eof? true end
flush()
click to toggle source
# File lib/puma/null_io.rb, line 51 def flush self end
gets()
click to toggle source
# File lib/puma/null_io.rb, line 7 def gets nil end
puts(*ary)
click to toggle source
# File lib/puma/null_io.rb, line 45 def puts(*ary) end
read(count = nil, _buffer = nil)
click to toggle source
Mimics IO#read with no data.
# File lib/puma/null_io.rb, line 20 def read(count = nil, _buffer = nil) count && count > 0 ? nil : "" end
rewind()
click to toggle source
# File lib/puma/null_io.rb, line 24 def rewind end
size()
click to toggle source
# File lib/puma/null_io.rb, line 30 def size 0 end
string()
click to toggle source
# File lib/puma/null_io.rb, line 11 def string "" end
sync()
click to toggle source
# File lib/puma/null_io.rb, line 38 def sync true end
sync=(v)
click to toggle source
# File lib/puma/null_io.rb, line 42 def sync=(v) end
write(*ary)
click to toggle source
# File lib/puma/null_io.rb, line 48 def write(*ary) end