Skip to content

Instantly share code, notes, and snippets.

@Jordanlagan
Created October 6, 2017 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jordanlagan/835db458b9228debef85e95d7df7bff8 to your computer and use it in GitHub Desktop.
Save Jordanlagan/835db458b9228debef85e95d7df7bff8 to your computer and use it in GitHub Desktop.
checkpoint 15
[4] pry(#<Post>):1> nesting
Nesting status:
--
0. main (Pry top level)
1. #<Post>
[5] pry(#<Post>):1> self.to_s
=> "#<Post:0x00000002f0d2a8>"
[6] pry(#<Post>):1> self.title = 'some new title'
=> "some new title"
[7] pry(#<Post>):1> self.body = 'some new body'
=> "some new body"
[8] pry(#<Post>):1> self.changes
=> {"title"=>["First Post", "some new title"],
"body"=>
["This is the first post in our system", "some new body"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment