class Puma::NullIO


Used as the value for rack.input when the request has no body.
Provides an IO-like object that always appears to contain no data.

def close

def close
end

def closed?

This is used as singleton class, so can't have state.
def closed?
  false
end

def each

def each
end

def eof?

def eof?
  true
end

def flush

def flush
  self
end

def gets

def gets
  nil
end

def puts(*ary)

def puts(*ary)
end

def read(count = nil, _buffer = nil)


Mimics IO#read with no data.
def read(count = nil, _buffer = nil)
  count && count > 0 ? nil : ""
end

def rewind

def rewind
end

def size

def size
  0
end

def string

def string
  ""
end

def sync

def sync
  true
end

def sync=(v)

def sync=(v)
end

def write(*ary)

def write(*ary)
end