Skip to content

Instantly share code, notes, and snippets.

@Kaeleigh
Created November 5, 2017 03:24
Show Gist options
  • Save Kaeleigh/5159397bb879a4e761c2e565ed7c717a to your computer and use it in GitHub Desktop.
Save Kaeleigh/5159397bb879a4e761c2e565ed7c717a to your computer and use it in GitHub Desktop.
[4] pry(#<Post>):1> nesting
Nesting status:
--
0. main (Pry top level)
1. #<Post>
[5] pry(#<Post>):1> self.to_s
=> "#<Post:0x007fd22889ab78>"
[6] pry(#<Post>):1> self.title = 'Star Wars'
=> "Star Wars"
[7] pry(#<Post>):1> self.body = 'Rey is a Jedi'
=> "Rey is a Jedi"
[8] pry(#<Post>):1> self.changes
=> {"title"=>["First Post", "Star Wars"],
"body"=>["This is the first post in our system", "Rey is a Jedi"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment