Skip to content

Instantly share code, notes, and snippets.

@nydame
Created June 22, 2018 23:17
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 nydame/510d8660bc3048193dff5c38e8509059 to your computer and use it in GitHub Desktop.
Save nydame/510d8660bc3048193dff5c38e8509059 to your computer and use it in GitHub Desktop.
[6] pry(#<Post>):1> nesting
Nesting status:
--
0. main (Pry top level)
1. #<Post>
[7] pry(#<Post>):1> self.to_s
=> "#<Post:0x00007fdad6ce57a8>"
[8] pry(#<Post>):1> self.title = "This is a Title Made with Pry"
=> "This is a Title Made with Pry"
[9] pry(#<Post>):1> self.title
=> "This is a Title Made with Pry"
[10] pry(#<Post>):1> self.body = "Oh, wow, this is much shorter than it used to be."
=> "Oh, wow, this is much shorter than it used to be."
[11] pry(#<Post>):1> self.changes
=> {"title"=>["My First Post", "This is a Title Made with Pry"],
"body"=>
["Aenean nec lacus vestibulum, blandit elit ut, dictum augue. Etiam consequat varius placerat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin sit amet nunc justo. Donec vulputate vitae metus sodales vulputate. Aliquam rhoncus turpis vitae enim pharetra, at ornare enim congue. Curabitur condimentum nunc vel sem rutrum, sed consequat ante tempor. Nunc non diam ipsum.",
"Oh, wow, this is much shorter than it used to be."]}
[12] pry(#<Post>):1> self.save!
@nydame
Copy link
Author

nydame commented Jun 22, 2018

Assignment 5 - Object Relational Mapping: completed.

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