Class: Webmachine::Adapters::Hatetepe::Body

Inherits:
Struct
  • Object
show all
Defined in:
lib/webmachine/adapters/hatetepe.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



92
93
94
95
# File 'lib/webmachine/adapters/hatetepe.rb', line 92

def each(&block)
  body.rewind
  body.each(&block)
end

#to_sObject



97
98
99
100
# File 'lib/webmachine/adapters/hatetepe.rb', line 97

def to_s
  body.rewind
  body.read.to_s
end