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.
Does nothing
# File lib/puma/null_io.rb, line 31 def close end
Never yields
# File lib/puma/null_io.rb, line 15 def each end
Always returns nil
# File lib/puma/null_io.rb, line 9 def gets nil end
# File lib/puma/null_io.rb, line 43 def puts(*ary) end
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
Does nothing
# File lib/puma/null_io.rb, line 26 def rewind end
Always zero
# File lib/puma/null_io.rb, line 36 def size 0 end
# File lib/puma/null_io.rb, line 40 def sync=(v) end
# File lib/puma/null_io.rb, line 46 def write(*ary) end