Skip to content

Instantly share code, notes, and snippets.

@jandudulski
Last active December 20, 2015 08:59
Show Gist options
  • Save jandudulski/6104143 to your computer and use it in GitHub Desktop.
Save jandudulski/6104143 to your computer and use it in GitHub Desktop.
WAAAT (httparty and empty body)?!?!
Response.new(self, last_response, lambda{}, {body: ""})
=> nil
Response.new(self, last_response, lambda{}, {body: ""}).nil?
=> true
Response.new(self, last_response, lambda{}, {body: ""}).class
=> HTTParty::Response
Response.new(self, last_response, lambda{}, {body: ""}) == nil
=> false
Response.new(self, last_response, lambda{}, {body: ""}) === nil
=> true
Response.new(self, last_response, lambda{}, {body: ""}) === HTTParty::Response
=> false
Response.new(self, last_response, lambda{}, {body: ""}).eql? nil
=> true
Response.new(self, last_response, lambda{}, {body: ""}).equal? nil
=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment