Class: Response::RemoveWhitespace

Inherits:
Middleware
  • Object
show all
Defined in:
lib/faraday/response/remove_whitespace.rb

Instance Method Summary collapse

Instance Method Details

#parse(body) ⇒ Object



6
7
8
# File 'lib/faraday/response/remove_whitespace.rb', line 6

def parse(body)
  body =~ /^\s+$/ ? "" : body
end