{"action":"opened","issue":{"url":"https://api.github.com/repos/notahat/finer_struct/issues/11","repository_url":"https://api.github.com/repos/notahat/finer_struct","labels_url":"https://api.github.com/repos/notahat/finer_struct/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/notahat/finer_struct/issues/11/comments","events_url":"https://api.github.com/repos/notahat/finer_struct/issues/11/events","html_url":"https://github.com/notahat/finer_struct/issues/11","id":141726522,"number":11,"title":"Alias struct methods","user":{"login":"orien","id":497874,"avatar_url":"https://avatars.githubusercontent.com/u/497874?v=3","gravatar_id":"","url":"https://api.github.com/users/orien","html_url":"https://github.com/orien","followers_url":"https://api.github.com/users/orien/followers","following_url":"https://api.github.com/users/orien/following{/other_user}","gists_url":"https://api.github.com/users/orien/gists{/gist_id}","starred_url":"https://api.github.com/users/orien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orien/subscriptions","organizations_url":"https://api.github.com/users/orien/orgs","repos_url":"https://api.github.com/users/orien/repos","events_url":"https://api.github.com/users/orien/events{/privacy}","received_events_url":"https://api.github.com/users/orien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-17T22:52:10Z","updated_at":"2016-03-17T22:52:10Z","closed_at":null,"body":"Prior to version 0.0.6 one could alias methods defined via FinerStruct like so:\r\n\r\n```ruby\r\nclass MyStruct < FinerStruct::Immutable(:nice)\r\n  alias_method(:nice?, :nice)\r\nend\r\n\r\ninstance = MyStruct.new(nice: true)\r\ninstance.nice? # => true\r\n```\r\n\r\nIn 0.0.6 `alias_method` no longer works. It instead raises an error.\r\n```\r\nNameError: undefined method `nice' for class `MyStruct'\r\n```\r\n\r\nIt seems the struct methods are no longer available via the class, rather are created during instantiation.\r\n\r\nIt would be great to have these methods available at the class level and get this feature back.\r\n"}}