Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Created August 9, 2013 01:48
Show Gist options
  • Save jessereynolds/6190523 to your computer and use it in GitHub Desktop.
Save jessereynolds/6190523 to your computer and use it in GitHub Desktop.
writing hashes in ruby, stylee
@last_error = {
:code => response.code,
:body => response.body
}
# vs
@last_error = {:code => response.code,
:body => response.body}
# vs
@last_error = {:code => response.code,
:body => response.body}
Copy link

ghost commented Aug 9, 2013

 @last_error = {:code => response.code,
                :body => response.body,
               }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment