{"action":"created","issue":{"url":"https://api.github.com/repos/ponyesteves/appuu/issues/19","labels_url":"https://api.github.com/repos/ponyesteves/appuu/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ponyesteves/appuu/issues/19/comments","events_url":"https://api.github.com/repos/ponyesteves/appuu/issues/19/events","html_url":"https://github.com/ponyesteves/appuu/issues/19","id":118845850,"number":19,"title":"Decoupling Subclasses Using Hook Messages ","user":{"login":"ponyesteves","id":4960589,"avatar_url":"https://avatars.githubusercontent.com/u/4960589?v=3","gravatar_id":"","url":"https://api.github.com/users/ponyesteves","html_url":"https://github.com/ponyesteves","followers_url":"https://api.github.com/users/ponyesteves/followers","following_url":"https://api.github.com/users/ponyesteves/following{/other_user}","gists_url":"https://api.github.com/users/ponyesteves/gists{/gist_id}","starred_url":"https://api.github.com/users/ponyesteves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponyesteves/subscriptions","organizations_url":"https://api.github.com/users/ponyesteves/orgs","repos_url":"https://api.github.com/users/ponyesteves/repos","events_url":"https://api.github.com/users/ponyesteves/events{/privacy}","received_events_url":"https://api.github.com/users/ponyesteves/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ponyesteves/appuu/labels/Wiki","name":"Wiki","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T14:21:14Z","updated_at":"2015-11-25T14:23:38Z","closed_at":null,"body":"```ruby\r\nclass Mi\r\n\tattr_reader :usuario\r\n\tdef initialize(args)\r\n\t\t@usuario = args[:usuario]\r\n\t\tpost_initialize(args)\r\n\tend\r\n\r\n\tdef post_initialize(args)\r\n\t\tnil\r\n\tend\r\nend\r\n\r\n\r\n\r\nclass Mi::Escritorio < Mi\r\n\t\r\n\tdef post_initialize(args)\r\n\t\t@tipo = args[:tipo]\r\n\tend\r\n\r\n\tdef principal\r\n\t\tFw::Escritorio.new(@usuario).principal\r\n\tend\r\n\r\n\tdef secundario\r\n\tend\r\n\r\nend\r\n"},"comment":{"url":"https://api.github.com/repos/ponyesteves/appuu/issues/comments/159620847","html_url":"https://github.com/ponyesteves/appuu/issues/19#issuecomment-159620847","issue_url":"https://api.github.com/repos/ponyesteves/appuu/issues/19","id":159620847,"user":{"login":"ponyesteves","id":4960589,"avatar_url":"https://avatars.githubusercontent.com/u/4960589?v=3","gravatar_id":"","url":"https://api.github.com/users/ponyesteves","html_url":"https://github.com/ponyesteves","followers_url":"https://api.github.com/users/ponyesteves/followers","following_url":"https://api.github.com/users/ponyesteves/following{/other_user}","gists_url":"https://api.github.com/users/ponyesteves/gists{/gist_id}","starred_url":"https://api.github.com/users/ponyesteves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponyesteves/subscriptions","organizations_url":"https://api.github.com/users/ponyesteves/orgs","repos_url":"https://api.github.com/users/ponyesteves/repos","events_url":"https://api.github.com/users/ponyesteves/events{/privacy}","received_events_url":"https://api.github.com/users/ponyesteves/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T14:23:38Z","updated_at":"2015-11-25T14:23:38Z","body":"Sirve para que las subclases en lugar de tener que conocer la implementación del padre utilicen un hook after_initialize o post_initialize para crear variables llamar métodos, etc"}}