{"action":"created","issue":{"url":"https://api.github.com/repos/opal/opal/issues/993","labels_url":"https://api.github.com/repos/opal/opal/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/opal/opal/issues/993/comments","events_url":"https://api.github.com/repos/opal/opal/issues/993/events","html_url":"https://github.com/opal/opal/issues/993","id":94410651,"number":993,"title":"attribute named `constructor` in `Class#` causes issues when using `Class#define_method`","user":{"login":"ppibburr","id":194411,"avatar_url":"https://avatars.githubusercontent.com/u/194411?v=3","gravatar_id":"","url":"https://api.github.com/users/ppibburr","html_url":"https://github.com/ppibburr","followers_url":"https://api.github.com/users/ppibburr/followers","following_url":"https://api.github.com/users/ppibburr/following{/other_user}","gists_url":"https://api.github.com/users/ppibburr/gists{/gist_id}","starred_url":"https://api.github.com/users/ppibburr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppibburr/subscriptions","organizations_url":"https://api.github.com/users/ppibburr/orgs","repos_url":"https://api.github.com/users/ppibburr/repos","events_url":"https://api.github.com/users/ppibburr/events{/privacy}","received_events_url":"https://api.github.com/users/ppibburr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-10T23:09:08Z","updated_at":"2015-07-11T13:07:21Z","closed_at":null,"body":"```ruby\r\nclass Foo\r\n  class << self\r\n    attr_accessor :constructor\r\n  end\r\n\r\n  define_method :foo do\r\n    next(true);\r\n  end\r\nend\r\n\r\n# => TypeError: 'undefined' is not an object (evaluating 'self.$$proto.constructor.prototype['$' + name] = func')\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/opal/opal/issues/comments/120615317","html_url":"https://github.com/opal/opal/issues/993#issuecomment-120615317","issue_url":"https://api.github.com/repos/opal/opal/issues/993","id":120615317,"user":{"login":"vais","id":77592,"avatar_url":"https://avatars.githubusercontent.com/u/77592?v=3","gravatar_id":"","url":"https://api.github.com/users/vais","html_url":"https://github.com/vais","followers_url":"https://api.github.com/users/vais/followers","following_url":"https://api.github.com/users/vais/following{/other_user}","gists_url":"https://api.github.com/users/vais/gists{/gist_id}","starred_url":"https://api.github.com/users/vais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vais/subscriptions","organizations_url":"https://api.github.com/users/vais/orgs","repos_url":"https://api.github.com/users/vais/repos","events_url":"https://api.github.com/users/vais/events{/privacy}","received_events_url":"https://api.github.com/users/vais/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T13:07:21Z","updated_at":"2015-07-11T13:07:21Z","body":"Oooh, @elia, when you get a chance to dig around, please post back here!"}}