{"issue":{"created_at":"2011-05-06T09:11:04Z","state":"open","updated_at":"2011-11-19T22:46:13Z","user":{"gravatar_id":"2c0dd5a3c0ce7bed6898ef7d25afe818","id":16409,"url":"https://api.github.com/users/epitron","login":"epitron","avatar_url":"https://secure.gravatar.com/avatar/2c0dd5a3c0ce7bed6898ef7d25afe818?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":8,"body":"I've started using this pattern for exploring the APIs of gems:\n\n* cd SomeClass.new\n* [... noodle around a bit ...]\n* cd ..\n\nUnfortunately, with classes that take parameters, it stops working:\n\n```ruby\npry(main)> cd YouTubeIt::Request::UserSearch.new(:favorites, :user => 'liz')\nSyntaxError: <main>: syntax error, unexpected $end, expecting ')'\nYouTubeIt::Request::UserSearch.new(:favorites,\n                                              ^\nfrom /opt/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/pry-0.8.3/lib/pry/commands.rb:734:in `eval'\n```\n\nWould this break the `cd Foo/Bar` stuff? Perhaps `cd Foo::Bar` could be used instead, and `cd ::` and `cd /` could be special-cased to return to the top scope. This would allow everything on the right-hand-side of `cd` to be a standard Ruby expression!\n\nSound useful to anyone else?","assignee":null,"id":857587,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":109,"labels":[{"name":"bug","color":"e02020","url":"https://api.github.com/repos/pry/pry/labels/bug"}],"title":"'cd' doesn't accept arbitrary ruby expressions on the right hand side","closed_at":null,"html_url":"https://github.com/pry/pry/issues/109","milestone":null,"url":"https://api.github.com/repos/pry/pry/issues/109"},"action":"created","comment":{"created_at":"2011-11-19T22:46:13Z","updated_at":"2011-11-19T22:46:13Z","user":{"gravatar_id":"890f7065d081f3a735362b6a1ca74b92","id":17518,"url":"https://api.github.com/users/banister","login":"banister","avatar_url":"https://secure.gravatar.com/avatar/890f7065d081f3a735362b6a1ca74b92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"here: https://github.com/pry/pry/wiki/State-navigation#wiki-Changing_scope","id":2801381,"url":"https://api.github.com/repos/pry/pry/issues/comments/2801381"}}