{"action":"created","issue":{"url":"https://api.github.com/repos/rubinius/rubinius/issues/3373","labels_url":"https://api.github.com/repos/rubinius/rubinius/issues/3373/labels{/name}","comments_url":"https://api.github.com/repos/rubinius/rubinius/issues/3373/comments","events_url":"https://api.github.com/repos/rubinius/rubinius/issues/3373/events","html_url":"https://github.com/rubinius/rubinius/issues/3373","id":67401170,"number":3373,"title":"Kernel.method calls `inspect` on obj instead of class","user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-09T16:36:39Z","updated_at":"2015-04-20T13:07:12Z","closed_at":null,"body":"It's a minor thing, but I thought it's worth reporting.\r\n\r\n(I don't know what the spec is for Ruby on this.)\r\n\r\n```ruby\r\nclass Foo\r\n  def inspect\r\n    fail NotImplementedError\r\n  end\r\nend\r\n\r\nFoo.new.method(:bar)\r\n```\r\n\r\n#### Expected (on MRI):\r\n```\r\nfoo.rb:7:in `method': undefined method `bar' for class `Foo' (NameError)\r\n\tfrom foo.rb:7:in `<main>'\r\n```\r\n\r\n#### Actual (on rbx-head and rbx-2.5.2 - probably on all versions)\r\n```\r\nAn exception occurred running foo.rb:\r\nNotImplementedError (NotImplementedError)\r\nBacktrace:\r\n                       Foo#inspect at foo.rb:3\r\n                Kernel(Foo)#method at kernel/common/kernel.rb:526\r\n                 Object#__script__ at foo.rb:7\r\n  Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66\r\n  Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:152\r\n           Rubinius::Loader#script at kernel/loader.rb:655\r\n             Rubinius::Loader#main at kernel/loader.rb:809\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rubinius/rubinius/issues/comments/94447034","html_url":"https://github.com/rubinius/rubinius/issues/3373#issuecomment-94447034","issue_url":"https://api.github.com/repos/rubinius/rubinius/issues/3373","id":94447034,"user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T13:07:12Z","updated_at":"2015-04-20T13:07:12Z","body":"I wanted to create a PR for this, but I probably won't have the time in the nearest future."}}