{"action":"created","comment":{"url":"https://api.github.com/repos/codeunion/data-structures/pulls/comments/29205267","id":29205267,"diff_hunk":"@@ -25,5 +27,14 @@ def add_child(value)\n   end\n \n   def each(&block)\n+    node = self.children\n+    until node.empty?\n+      block.call(node.head.value)\n+      node = node.children\n+    end","path":"tree.rb","position":16,"original_position":16,"commit_id":"c885beeb5b33e7e6c79fa0fd5f446db0762debe3","original_commit_id":"c885beeb5b33e7e6c79fa0fd5f446db0762debe3","user":{"login":"jfarmer","id":37304,"avatar_url":"https://avatars.githubusercontent.com/u/37304?v=3","gravatar_id":"","url":"https://api.github.com/users/jfarmer","html_url":"https://github.com/jfarmer","followers_url":"https://api.github.com/users/jfarmer/followers","following_url":"https://api.github.com/users/jfarmer/following{/other_user}","gists_url":"https://api.github.com/users/jfarmer/gists{/gist_id}","starred_url":"https://api.github.com/users/jfarmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfarmer/subscriptions","organizations_url":"https://api.github.com/users/jfarmer/orgs","repos_url":"https://api.github.com/users/jfarmer/repos","events_url":"https://api.github.com/users/jfarmer/events{/privacy}","received_events_url":"https://api.github.com/users/jfarmer/received_events","type":"User","site_admin":false},"body":"`self.children` returns a list of nodes and it seems like you're only ever passing the first child to `block.call`.","created_at":"2015-04-28T00:24:36Z","updated_at":"2015-04-28T00:24:36Z","html_url":"https://github.com/codeunion/data-structures/pull/3#discussion_r29205267","pull_request_url":"https://api.github.com/repos/codeunion/data-structures/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/comments/29205267"},"html":{"href":"https://github.com/codeunion/data-structures/pull/3#discussion_r29205267"},"pull_request":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/codeunion/data-structures/pulls/3","id":34167672,"html_url":"https://github.com/codeunion/data-structures/pull/3","diff_url":"https://github.com/codeunion/data-structures/pull/3.diff","patch_url":"https://github.com/codeunion/data-structures/pull/3.patch","issue_url":"https://api.github.com/repos/codeunion/data-structures/issues/3","number":3,"state":"open","locked":false,"title":"Refactored my Trie","user":{"login":"Katzy","id":8275114,"avatar_url":"https://avatars.githubusercontent.com/u/8275114?v=3","gravatar_id":"","url":"https://api.github.com/users/Katzy","html_url":"https://github.com/Katzy","followers_url":"https://api.github.com/users/Katzy/followers","following_url":"https://api.github.com/users/Katzy/following{/other_user}","gists_url":"https://api.github.com/users/Katzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Katzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katzy/subscriptions","organizations_url":"https://api.github.com/users/Katzy/orgs","repos_url":"https://api.github.com/users/Katzy/repos","events_url":"https://api.github.com/users/Katzy/events{/privacy}","received_events_url":"https://api.github.com/users/Katzy/received_events","type":"User","site_admin":false},"body":"Not sure why this was so challenging.  Conceptually, understanding what must happen was quite simple.  Looking back, when dealing with a Trie built upon a Tree built upon a LinkedList, knowing which type of node was going to be returned and how to manipulate the data properly with methods commensurate with the class proved to be a little bit of a headache.  Glad that's over.  On to the next.","created_at":"2015-04-27T13:20:47Z","updated_at":"2015-04-28T00:24:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ccb9322128bbdbae840da96111b67e2ff70f5d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeunion/data-structures/pulls/3/commits","review_comments_url":"https://api.github.com/repos/codeunion/data-structures/pulls/3/comments","review_comment_url":"https://api.github.com/repos/codeunion/data-structures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeunion/data-structures/issues/3/comments","statuses_url":"https://api.github.com/repos/codeunion/data-structures/statuses/c885beeb5b33e7e6c79fa0fd5f446db0762debe3","head":{"label":"Katzy:master","ref":"master","sha":"c885beeb5b33e7e6c79fa0fd5f446db0762debe3","user":{"login":"Katzy","id":8275114,"avatar_url":"https://avatars.githubusercontent.com/u/8275114?v=3","gravatar_id":"","url":"https://api.github.com/users/Katzy","html_url":"https://github.com/Katzy","followers_url":"https://api.github.com/users/Katzy/followers","following_url":"https://api.github.com/users/Katzy/following{/other_user}","gists_url":"https://api.github.com/users/Katzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Katzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katzy/subscriptions","organizations_url":"https://api.github.com/users/Katzy/orgs","repos_url":"https://api.github.com/users/Katzy/repos","events_url":"https://api.github.com/users/Katzy/events{/privacy}","received_events_url":"https://api.github.com/users/Katzy/received_events","type":"User","site_admin":false},"repo":{"id":31042956,"name":"data-structures","full_name":"Katzy/data-structures","owner":{"login":"Katzy","id":8275114,"avatar_url":"https://avatars.githubusercontent.com/u/8275114?v=3","gravatar_id":"","url":"https://api.github.com/users/Katzy","html_url":"https://github.com/Katzy","followers_url":"https://api.github.com/users/Katzy/followers","following_url":"https://api.github.com/users/Katzy/following{/other_user}","gists_url":"https://api.github.com/users/Katzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Katzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katzy/subscriptions","organizations_url":"https://api.github.com/users/Katzy/orgs","repos_url":"https://api.github.com/users/Katzy/repos","events_url":"https://api.github.com/users/Katzy/events{/privacy}","received_events_url":"https://api.github.com/users/Katzy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Katzy/data-structures","description":"Data structure exercises","fork":true,"url":"https://api.github.com/repos/Katzy/data-structures","forks_url":"https://api.github.com/repos/Katzy/data-structures/forks","keys_url":"https://api.github.com/repos/Katzy/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katzy/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katzy/data-structures/teams","hooks_url":"https://api.github.com/repos/Katzy/data-structures/hooks","issue_events_url":"https://api.github.com/repos/Katzy/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/Katzy/data-structures/events","assignees_url":"https://api.github.com/repos/Katzy/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/Katzy/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/Katzy/data-structures/tags","blobs_url":"https://api.github.com/repos/Katzy/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katzy/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katzy/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katzy/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katzy/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/Katzy/data-structures/languages","stargazers_url":"https://api.github.com/repos/Katzy/data-structures/stargazers","contributors_url":"https://api.github.com/repos/Katzy/data-structures/contributors","subscribers_url":"https://api.github.com/repos/Katzy/data-structures/subscribers","subscription_url":"https://api.github.com/repos/Katzy/data-structures/subscription","commits_url":"https://api.github.com/repos/Katzy/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katzy/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katzy/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katzy/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katzy/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/Katzy/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katzy/data-structures/merges","archive_url":"https://api.github.com/repos/Katzy/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katzy/data-structures/downloads","issues_url":"https://api.github.com/repos/Katzy/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/Katzy/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/Katzy/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/Katzy/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katzy/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/Katzy/data-structures/releases{/id}","created_at":"2015-02-19T23:42:20Z","updated_at":"2015-04-27T16:25:31Z","pushed_at":"2015-04-27T16:25:31Z","git_url":"git://github.com/Katzy/data-structures.git","ssh_url":"git@github.com:Katzy/data-structures.git","clone_url":"https://github.com/Katzy/data-structures.git","svn_url":"https://github.com/Katzy/data-structures","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codeunion:master","ref":"master","sha":"bd7613889cf7280155b2b1e2616fbcedcf3add0a","user":{"login":"codeunion","id":7133286,"avatar_url":"https://avatars.githubusercontent.com/u/7133286?v=3","gravatar_id":"","url":"https://api.github.com/users/codeunion","html_url":"https://github.com/codeunion","followers_url":"https://api.github.com/users/codeunion/followers","following_url":"https://api.github.com/users/codeunion/following{/other_user}","gists_url":"https://api.github.com/users/codeunion/gists{/gist_id}","starred_url":"https://api.github.com/users/codeunion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeunion/subscriptions","organizations_url":"https://api.github.com/users/codeunion/orgs","repos_url":"https://api.github.com/users/codeunion/repos","events_url":"https://api.github.com/users/codeunion/events{/privacy}","received_events_url":"https://api.github.com/users/codeunion/received_events","type":"Organization","site_admin":false},"repo":{"id":24775054,"name":"data-structures","full_name":"codeunion/data-structures","owner":{"login":"codeunion","id":7133286,"avatar_url":"https://avatars.githubusercontent.com/u/7133286?v=3","gravatar_id":"","url":"https://api.github.com/users/codeunion","html_url":"https://github.com/codeunion","followers_url":"https://api.github.com/users/codeunion/followers","following_url":"https://api.github.com/users/codeunion/following{/other_user}","gists_url":"https://api.github.com/users/codeunion/gists{/gist_id}","starred_url":"https://api.github.com/users/codeunion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeunion/subscriptions","organizations_url":"https://api.github.com/users/codeunion/orgs","repos_url":"https://api.github.com/users/codeunion/repos","events_url":"https://api.github.com/users/codeunion/events{/privacy}","received_events_url":"https://api.github.com/users/codeunion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeunion/data-structures","description":"Data structure exercises","fork":false,"url":"https://api.github.com/repos/codeunion/data-structures","forks_url":"https://api.github.com/repos/codeunion/data-structures/forks","keys_url":"https://api.github.com/repos/codeunion/data-structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeunion/data-structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeunion/data-structures/teams","hooks_url":"https://api.github.com/repos/codeunion/data-structures/hooks","issue_events_url":"https://api.github.com/repos/codeunion/data-structures/issues/events{/number}","events_url":"https://api.github.com/repos/codeunion/data-structures/events","assignees_url":"https://api.github.com/repos/codeunion/data-structures/assignees{/user}","branches_url":"https://api.github.com/repos/codeunion/data-structures/branches{/branch}","tags_url":"https://api.github.com/repos/codeunion/data-structures/tags","blobs_url":"https://api.github.com/repos/codeunion/data-structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeunion/data-structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeunion/data-structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeunion/data-structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeunion/data-structures/statuses/{sha}","languages_url":"https://api.github.com/repos/codeunion/data-structures/languages","stargazers_url":"https://api.github.com/repos/codeunion/data-structures/stargazers","contributors_url":"https://api.github.com/repos/codeunion/data-structures/contributors","subscribers_url":"https://api.github.com/repos/codeunion/data-structures/subscribers","subscription_url":"https://api.github.com/repos/codeunion/data-structures/subscription","commits_url":"https://api.github.com/repos/codeunion/data-structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeunion/data-structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeunion/data-structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeunion/data-structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeunion/data-structures/contents/{+path}","compare_url":"https://api.github.com/repos/codeunion/data-structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeunion/data-structures/merges","archive_url":"https://api.github.com/repos/codeunion/data-structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeunion/data-structures/downloads","issues_url":"https://api.github.com/repos/codeunion/data-structures/issues{/number}","pulls_url":"https://api.github.com/repos/codeunion/data-structures/pulls{/number}","milestones_url":"https://api.github.com/repos/codeunion/data-structures/milestones{/number}","notifications_url":"https://api.github.com/repos/codeunion/data-structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeunion/data-structures/labels{/name}","releases_url":"https://api.github.com/repos/codeunion/data-structures/releases{/id}","created_at":"2014-10-03T21:54:22Z","updated_at":"2015-02-18T21:04:58Z","pushed_at":"2015-04-27T16:25:31Z","git_url":"git://github.com/codeunion/data-structures.git","ssh_url":"git@github.com:codeunion/data-structures.git","clone_url":"https://github.com/codeunion/data-structures.git","svn_url":"https://github.com/codeunion/data-structures","homepage":null,"size":236,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/3"},"html":{"href":"https://github.com/codeunion/data-structures/pull/3"},"issue":{"href":"https://api.github.com/repos/codeunion/data-structures/issues/3"},"comments":{"href":"https://api.github.com/repos/codeunion/data-structures/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeunion/data-structures/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/codeunion/data-structures/statuses/c885beeb5b33e7e6c79fa0fd5f446db0762debe3"}}}}