Class: EsiForRack::IOWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/esi_for_rack.rb

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ IOWrapper

Returns a new instance of IOWrapper.



70
71
72
# File 'lib/esi_for_rack.rb', line 70

def initialize(body)
  @body = body.each
end

Instance Method Details

#closeObject



78
79
80
# File 'lib/esi_for_rack.rb', line 78

def close
  #no-op
end

#readObject



74
75
76
# File 'lib/esi_for_rack.rb', line 74

def read
  @body.end?
end