{"action":"opened","issue":{"url":"https://api.github.com/repos/pry/pry/issues/1462","labels_url":"https://api.github.com/repos/pry/pry/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/pry/pry/issues/1462/comments","events_url":"https://api.github.com/repos/pry/pry/issues/1462/events","html_url":"https://github.com/pry/pry/issues/1462","id":102021115,"number":1462,"title":"Calling binding.pry within a method of a class inheriting from SimpleDelegator","user":{"login":"somazx","id":7306,"avatar_url":"https://avatars.githubusercontent.com/u/7306?v=3","gravatar_id":"","url":"https://api.github.com/users/somazx","html_url":"https://github.com/somazx","followers_url":"https://api.github.com/users/somazx/followers","following_url":"https://api.github.com/users/somazx/following{/other_user}","gists_url":"https://api.github.com/users/somazx/gists{/gist_id}","starred_url":"https://api.github.com/users/somazx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somazx/subscriptions","organizations_url":"https://api.github.com/users/somazx/orgs","repos_url":"https://api.github.com/users/somazx/repos","events_url":"https://api.github.com/users/somazx/events{/privacy}","received_events_url":"https://api.github.com/users/somazx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T23:14:55Z","updated_at":"2015-08-19T23:14:55Z","closed_at":null,"body":"When I call binding.pry within a method of an object inheriting from SimpleDelegator, instead of being in the context of where I called binding.pry, I'm within the context of Delegator#method_missing.\r\n\r\nIs there some way I can fix/change/work around this behaviour?\r\n\r\nFrom reading this issue https://github.com/pry/pry/issues/1403\r\n\r\n> I think the method is created on demand the first time the method is run, otherwise it delegates via method_missing. So try running the method first and then doing an ls to see if it comes up\r\n\r\nThat sounds like the explanation of why this happens, that correct?"}}