{"action":"created","issue":{"url":"https://api.github.com/repos/barsoom/attr_extras/issues/15","labels_url":"https://api.github.com/repos/barsoom/attr_extras/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/barsoom/attr_extras/issues/15/comments","events_url":"https://api.github.com/repos/barsoom/attr_extras/issues/15/events","html_url":"https://github.com/barsoom/attr_extras/issues/15","id":59806597,"number":15,"title":"Do we want to support BasicObject?","user":{"login":"joakimk","id":13256,"avatar_url":"https://avatars.githubusercontent.com/u/13256?v=3","gravatar_id":"","url":"https://api.github.com/users/joakimk","html_url":"https://github.com/joakimk","followers_url":"https://api.github.com/users/joakimk/followers","following_url":"https://api.github.com/users/joakimk/following{/other_user}","gists_url":"https://api.github.com/users/joakimk/gists{/gist_id}","starred_url":"https://api.github.com/users/joakimk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joakimk/subscriptions","organizations_url":"https://api.github.com/users/joakimk/orgs","repos_url":"https://api.github.com/users/joakimk/repos","events_url":"https://api.github.com/users/joakimk/events{/privacy}","received_events_url":"https://api.github.com/users/joakimk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T14:42:37Z","updated_at":"2015-03-08T14:09:53Z","closed_at":null,"body":"```ruby\r\nrequire \"attr_extras\"\r\n\r\nclass Foo < BasicObject\r\n  pattr_initialize :bar\r\n\r\n  def hello\r\n    bar\r\n  end\r\nend\r\n\r\nFoo.new(\"bar-value\").hello\r\n```\r\n\r\n    undefined method `instance_variable_set' for #<Foo:0x007f7bace49a38> (NoMethodError)"},"comment":{"url":"https://api.github.com/repos/barsoom/attr_extras/issues/comments/77750779","html_url":"https://github.com/barsoom/attr_extras/issues/15#issuecomment-77750779","issue_url":"https://api.github.com/repos/barsoom/attr_extras/issues/15","id":77750779,"user":{"login":"henrik","id":216,"avatar_url":"https://avatars.githubusercontent.com/u/216?v=3","gravatar_id":"","url":"https://api.github.com/users/henrik","html_url":"https://github.com/henrik","followers_url":"https://api.github.com/users/henrik/followers","following_url":"https://api.github.com/users/henrik/following{/other_user}","gists_url":"https://api.github.com/users/henrik/gists{/gist_id}","starred_url":"https://api.github.com/users/henrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrik/subscriptions","organizations_url":"https://api.github.com/users/henrik/orgs","repos_url":"https://api.github.com/users/henrik/repos","events_url":"https://api.github.com/users/henrik/events{/privacy}","received_events_url":"https://api.github.com/users/henrik/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T14:09:53Z","updated_at":"2015-03-08T14:09:53Z","body":"Hm, looked into this a bit. BasicObject doesn't have `#class` either, for example. And `Object#class` is defined in C, so it's perhaps not trivial to reimplement.\r\n\r\nSo I suspect it wouldn't be easy to make it work, and it would probably uglify the code quite a bit.\r\n\r\nBut a better error message is probably achievable."}}