{"action":"created","comment":{"url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/comments/62770295","id":62770295,"diff_hunk":"@@ -82,11 +82,32 @@ defmodule Koans do\n   end\n \n   defmacro __before_compile__(env) do\n-    koans = Module.get_attribute(env.module, :koans) |> Enum.reverse\n+    koans = koans(env)\n+    intro = extract_into(env)\n     quote do\n       def all_koans do\n         unquote(koans)\n       end\n+\n+      def intro do\n+        unquote(intro)","path":"lib/koans.ex","position":13,"original_position":13,"commit_id":"94ab9826aeed2ce2161ac2f09e14e25363419180","original_commit_id":"94ab9826aeed2ce2161ac2f09e14e25363419180","user":{"login":"iamvery","id":79619,"avatar_url":"https://avatars.githubusercontent.com/u/79619?v=3","gravatar_id":"","url":"https://api.github.com/users/iamvery","html_url":"https://github.com/iamvery","followers_url":"https://api.github.com/users/iamvery/followers","following_url":"https://api.github.com/users/iamvery/following{/other_user}","gists_url":"https://api.github.com/users/iamvery/gists{/gist_id}","starred_url":"https://api.github.com/users/iamvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamvery/subscriptions","organizations_url":"https://api.github.com/users/iamvery/orgs","repos_url":"https://api.github.com/users/iamvery/repos","events_url":"https://api.github.com/users/iamvery/events{/privacy}","received_events_url":"https://api.github.com/users/iamvery/received_events","type":"User","site_admin":false},"body":"Is all this metaprogramming needed? Couldn't his function just be something like\r\n\r\n```elixir\r\ndef intro, do: @intro\r\n```","created_at":"2016-05-10T23:18:31Z","updated_at":"2016-05-10T23:18:31Z","html_url":"https://github.com/elixirkoans/elixir-koans/pull/115#discussion_r62770295","pull_request_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/comments/62770295"},"html":{"href":"https://github.com/elixirkoans/elixir-koans/pull/115#discussion_r62770295"},"pull_request":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115","id":69586199,"html_url":"https://github.com/elixirkoans/elixir-koans/pull/115","diff_url":"https://github.com/elixirkoans/elixir-koans/pull/115.diff","patch_url":"https://github.com/elixirkoans/elixir-koans/pull/115.patch","issue_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/115","number":115,"state":"open","locked":false,"title":"Adds an @intro attribute to display when running a module","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"body":"To help build more of a story into the koans,\r\nI've added a module attribute called `@intro`.\r\n\r\nThat intro will be displayed the very first time a module is accessed.\r\n\r\n<img width=\"563\" alt=\"screen shot 2016-05-10 at 23 05 11\" src=\"https://cloud.githubusercontent.com/assets/1850188/15164033/fc917d38-1703-11e6-9b95-13406ac7f9cd.png\">\r\n","created_at":"2016-05-10T22:07:43Z","updated_at":"2016-05-10T23:18:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da321e28bba23203a4ebcadb5c36b0216a71898c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115/commits","review_comments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115/comments","review_comment_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/115/comments","statuses_url":"https://api.github.com/repos/elixirkoans/elixir-koans/statuses/94ab9826aeed2ce2161ac2f09e14e25363419180","head":{"label":"elixirkoans:module-doc","ref":"module-doc","sha":"94ab9826aeed2ce2161ac2f09e14e25363419180","user":{"login":"elixirkoans","id":18631461,"avatar_url":"https://avatars.githubusercontent.com/u/18631461?v=3","gravatar_id":"","url":"https://api.github.com/users/elixirkoans","html_url":"https://github.com/elixirkoans","followers_url":"https://api.github.com/users/elixirkoans/followers","following_url":"https://api.github.com/users/elixirkoans/following{/other_user}","gists_url":"https://api.github.com/users/elixirkoans/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirkoans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirkoans/subscriptions","organizations_url":"https://api.github.com/users/elixirkoans/orgs","repos_url":"https://api.github.com/users/elixirkoans/repos","events_url":"https://api.github.com/users/elixirkoans/events{/privacy}","received_events_url":"https://api.github.com/users/elixirkoans/received_events","type":"Organization","site_admin":false},"repo":{"id":48109902,"name":"elixir-koans","full_name":"elixirkoans/elixir-koans","owner":{"login":"elixirkoans","id":18631461,"avatar_url":"https://avatars.githubusercontent.com/u/18631461?v=3","gravatar_id":"","url":"https://api.github.com/users/elixirkoans","html_url":"https://github.com/elixirkoans","followers_url":"https://api.github.com/users/elixirkoans/followers","following_url":"https://api.github.com/users/elixirkoans/following{/other_user}","gists_url":"https://api.github.com/users/elixirkoans/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirkoans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirkoans/subscriptions","organizations_url":"https://api.github.com/users/elixirkoans/orgs","repos_url":"https://api.github.com/users/elixirkoans/repos","events_url":"https://api.github.com/users/elixirkoans/events{/privacy}","received_events_url":"https://api.github.com/users/elixirkoans/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixirkoans/elixir-koans","description":"Elixir learning exercises","fork":false,"url":"https://api.github.com/repos/elixirkoans/elixir-koans","forks_url":"https://api.github.com/repos/elixirkoans/elixir-koans/forks","keys_url":"https://api.github.com/repos/elixirkoans/elixir-koans/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixirkoans/elixir-koans/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixirkoans/elixir-koans/teams","hooks_url":"https://api.github.com/repos/elixirkoans/elixir-koans/hooks","issue_events_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/events{/number}","events_url":"https://api.github.com/repos/elixirkoans/elixir-koans/events","assignees_url":"https://api.github.com/repos/elixirkoans/elixir-koans/assignees{/user}","branches_url":"https://api.github.com/repos/elixirkoans/elixir-koans/branches{/branch}","tags_url":"https://api.github.com/repos/elixirkoans/elixir-koans/tags","blobs_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixirkoans/elixir-koans/statuses/{sha}","languages_url":"https://api.github.com/repos/elixirkoans/elixir-koans/languages","stargazers_url":"https://api.github.com/repos/elixirkoans/elixir-koans/stargazers","contributors_url":"https://api.github.com/repos/elixirkoans/elixir-koans/contributors","subscribers_url":"https://api.github.com/repos/elixirkoans/elixir-koans/subscribers","subscription_url":"https://api.github.com/repos/elixirkoans/elixir-koans/subscription","commits_url":"https://api.github.com/repos/elixirkoans/elixir-koans/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixirkoans/elixir-koans/contents/{+path}","compare_url":"https://api.github.com/repos/elixirkoans/elixir-koans/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixirkoans/elixir-koans/merges","archive_url":"https://api.github.com/repos/elixirkoans/elixir-koans/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixirkoans/elixir-koans/downloads","issues_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues{/number}","pulls_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls{/number}","milestones_url":"https://api.github.com/repos/elixirkoans/elixir-koans/milestones{/number}","notifications_url":"https://api.github.com/repos/elixirkoans/elixir-koans/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixirkoans/elixir-koans/labels{/name}","releases_url":"https://api.github.com/repos/elixirkoans/elixir-koans/releases{/id}","deployments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/deployments","created_at":"2015-12-16T12:47:51Z","updated_at":"2016-05-10T23:06:09Z","pushed_at":"2016-05-10T22:40:42Z","git_url":"git://github.com/elixirkoans/elixir-koans.git","ssh_url":"git@github.com:elixirkoans/elixir-koans.git","clone_url":"https://github.com/elixirkoans/elixir-koans.git","svn_url":"https://github.com/elixirkoans/elixir-koans","homepage":null,"size":207,"stargazers_count":185,"watchers_count":185,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":14,"forks":37,"open_issues":14,"watchers":185,"default_branch":"master"}},"base":{"label":"elixirkoans:master","ref":"master","sha":"c23fca5b292c13904dd9a88ad775042928d89f23","user":{"login":"elixirkoans","id":18631461,"avatar_url":"https://avatars.githubusercontent.com/u/18631461?v=3","gravatar_id":"","url":"https://api.github.com/users/elixirkoans","html_url":"https://github.com/elixirkoans","followers_url":"https://api.github.com/users/elixirkoans/followers","following_url":"https://api.github.com/users/elixirkoans/following{/other_user}","gists_url":"https://api.github.com/users/elixirkoans/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirkoans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirkoans/subscriptions","organizations_url":"https://api.github.com/users/elixirkoans/orgs","repos_url":"https://api.github.com/users/elixirkoans/repos","events_url":"https://api.github.com/users/elixirkoans/events{/privacy}","received_events_url":"https://api.github.com/users/elixirkoans/received_events","type":"Organization","site_admin":false},"repo":{"id":48109902,"name":"elixir-koans","full_name":"elixirkoans/elixir-koans","owner":{"login":"elixirkoans","id":18631461,"avatar_url":"https://avatars.githubusercontent.com/u/18631461?v=3","gravatar_id":"","url":"https://api.github.com/users/elixirkoans","html_url":"https://github.com/elixirkoans","followers_url":"https://api.github.com/users/elixirkoans/followers","following_url":"https://api.github.com/users/elixirkoans/following{/other_user}","gists_url":"https://api.github.com/users/elixirkoans/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirkoans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirkoans/subscriptions","organizations_url":"https://api.github.com/users/elixirkoans/orgs","repos_url":"https://api.github.com/users/elixirkoans/repos","events_url":"https://api.github.com/users/elixirkoans/events{/privacy}","received_events_url":"https://api.github.com/users/elixirkoans/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixirkoans/elixir-koans","description":"Elixir learning exercises","fork":false,"url":"https://api.github.com/repos/elixirkoans/elixir-koans","forks_url":"https://api.github.com/repos/elixirkoans/elixir-koans/forks","keys_url":"https://api.github.com/repos/elixirkoans/elixir-koans/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixirkoans/elixir-koans/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixirkoans/elixir-koans/teams","hooks_url":"https://api.github.com/repos/elixirkoans/elixir-koans/hooks","issue_events_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/events{/number}","events_url":"https://api.github.com/repos/elixirkoans/elixir-koans/events","assignees_url":"https://api.github.com/repos/elixirkoans/elixir-koans/assignees{/user}","branches_url":"https://api.github.com/repos/elixirkoans/elixir-koans/branches{/branch}","tags_url":"https://api.github.com/repos/elixirkoans/elixir-koans/tags","blobs_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixirkoans/elixir-koans/statuses/{sha}","languages_url":"https://api.github.com/repos/elixirkoans/elixir-koans/languages","stargazers_url":"https://api.github.com/repos/elixirkoans/elixir-koans/stargazers","contributors_url":"https://api.github.com/repos/elixirkoans/elixir-koans/contributors","subscribers_url":"https://api.github.com/repos/elixirkoans/elixir-koans/subscribers","subscription_url":"https://api.github.com/repos/elixirkoans/elixir-koans/subscription","commits_url":"https://api.github.com/repos/elixirkoans/elixir-koans/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixirkoans/elixir-koans/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixirkoans/elixir-koans/contents/{+path}","compare_url":"https://api.github.com/repos/elixirkoans/elixir-koans/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixirkoans/elixir-koans/merges","archive_url":"https://api.github.com/repos/elixirkoans/elixir-koans/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixirkoans/elixir-koans/downloads","issues_url":"https://api.github.com/repos/elixirkoans/elixir-koans/issues{/number}","pulls_url":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls{/number}","milestones_url":"https://api.github.com/repos/elixirkoans/elixir-koans/milestones{/number}","notifications_url":"https://api.github.com/repos/elixirkoans/elixir-koans/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixirkoans/elixir-koans/labels{/name}","releases_url":"https://api.github.com/repos/elixirkoans/elixir-koans/releases{/id}","deployments_url":"https://api.github.com/repos/elixirkoans/elixir-koans/deployments","created_at":"2015-12-16T12:47:51Z","updated_at":"2016-05-10T23:06:09Z","pushed_at":"2016-05-10T22:40:42Z","git_url":"git://github.com/elixirkoans/elixir-koans.git","ssh_url":"git@github.com:elixirkoans/elixir-koans.git","clone_url":"https://github.com/elixirkoans/elixir-koans.git","svn_url":"https://github.com/elixirkoans/elixir-koans","homepage":null,"size":207,"stargazers_count":185,"watchers_count":185,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":14,"forks":37,"open_issues":14,"watchers":185,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115"},"html":{"href":"https://github.com/elixirkoans/elixir-koans/pull/115"},"issue":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/115"},"comments":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/elixirkoans/elixir-koans/statuses/94ab9826aeed2ce2161ac2f09e14e25363419180"}}}}