{"action":"created","comment":{"url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/comments/25763338","id":25763338,"diff_hunk":"@@ -27,4 +27,17 @@ def __target_object__\n   def method_missing(method_name, *args, &block)\n     __target_object__.send(method_name, *args, &block)\n   end\n+\n+  def present?\n+    !blank?\n+  end\n+\n+  def blank?\n+    __target_object__.respond_to?(:empty?) ? !!__target_object__.empty? : !__target_object__\n+  end\n+\n+  # Forwards method calls to the target object.","path":"lib/lazy_object.rb","position":29,"original_position":28,"commit_id":"2f41d999029357bbe4d4647f4ade33c8bcf5cc5b","original_commit_id":"acc68059802e02293bb43fda3aa091a39fde18bf","user":{"login":"skarm61","id":1547314,"avatar_url":"https://avatars.githubusercontent.com/u/1547314?v=3","gravatar_id":"","url":"https://api.github.com/users/skarm61","html_url":"https://github.com/skarm61","followers_url":"https://api.github.com/users/skarm61/followers","following_url":"https://api.github.com/users/skarm61/following{/other_user}","gists_url":"https://api.github.com/users/skarm61/gists{/gist_id}","starred_url":"https://api.github.com/users/skarm61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skarm61/subscriptions","organizations_url":"https://api.github.com/users/skarm61/orgs","repos_url":"https://api.github.com/users/skarm61/repos","events_url":"https://api.github.com/users/skarm61/events{/privacy}","received_events_url":"https://api.github.com/users/skarm61/received_events","type":"User","site_admin":false},"body":"You can find unit tests here:\r\nhttps://github.com/HornsAndHooves/lazy_object/blob/version_0_0_2/spec/lazy_object_spec.rb\r\nBasicObject doesn't have any of this methods, so I think my changes are necessary.\r\nhttp://ruby-doc.org/core-2.1.5/BasicObject.html","created_at":"2015-03-04T10:03:37Z","updated_at":"2015-03-04T10:03:37Z","html_url":"https://github.com/HornsAndHooves/lazy_object/pull/1#discussion_r25763338","pull_request_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/comments/25763338"},"html":{"href":"https://github.com/HornsAndHooves/lazy_object/pull/1#discussion_r25763338"},"pull_request":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1","id":30378651,"html_url":"https://github.com/HornsAndHooves/lazy_object/pull/1","diff_url":"https://github.com/HornsAndHooves/lazy_object/pull/1.diff","patch_url":"https://github.com/HornsAndHooves/lazy_object/pull/1.patch","issue_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/1","number":1,"state":"open","locked":false,"title":"Added #present? #nil? #blank?","user":{"login":"skarm61","id":1547314,"avatar_url":"https://avatars.githubusercontent.com/u/1547314?v=3","gravatar_id":"","url":"https://api.github.com/users/skarm61","html_url":"https://github.com/skarm61","followers_url":"https://api.github.com/users/skarm61/followers","following_url":"https://api.github.com/users/skarm61/following{/other_user}","gists_url":"https://api.github.com/users/skarm61/gists{/gist_id}","starred_url":"https://api.github.com/users/skarm61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skarm61/subscriptions","organizations_url":"https://api.github.com/users/skarm61/orgs","repos_url":"https://api.github.com/users/skarm61/repos","events_url":"https://api.github.com/users/skarm61/events{/privacy}","received_events_url":"https://api.github.com/users/skarm61/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-03T14:41:31Z","updated_at":"2015-03-04T10:03:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"820d1f035ba269ca06cf68bc6d6b0caaf8f93cd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1/commits","review_comments_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1/comments","review_comment_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/1/comments","statuses_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/statuses/2f41d999029357bbe4d4647f4ade33c8bcf5cc5b","head":{"label":"HornsAndHooves:version_0_0_2","ref":"version_0_0_2","sha":"2f41d999029357bbe4d4647f4ade33c8bcf5cc5b","user":{"login":"HornsAndHooves","id":7077270,"avatar_url":"https://avatars.githubusercontent.com/u/7077270?v=3","gravatar_id":"","url":"https://api.github.com/users/HornsAndHooves","html_url":"https://github.com/HornsAndHooves","followers_url":"https://api.github.com/users/HornsAndHooves/followers","following_url":"https://api.github.com/users/HornsAndHooves/following{/other_user}","gists_url":"https://api.github.com/users/HornsAndHooves/gists{/gist_id}","starred_url":"https://api.github.com/users/HornsAndHooves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HornsAndHooves/subscriptions","organizations_url":"https://api.github.com/users/HornsAndHooves/orgs","repos_url":"https://api.github.com/users/HornsAndHooves/repos","events_url":"https://api.github.com/users/HornsAndHooves/events{/privacy}","received_events_url":"https://api.github.com/users/HornsAndHooves/received_events","type":"Organization","site_admin":false},"repo":{"id":24742898,"name":"lazy_object","full_name":"HornsAndHooves/lazy_object","owner":{"login":"HornsAndHooves","id":7077270,"avatar_url":"https://avatars.githubusercontent.com/u/7077270?v=3","gravatar_id":"","url":"https://api.github.com/users/HornsAndHooves","html_url":"https://github.com/HornsAndHooves","followers_url":"https://api.github.com/users/HornsAndHooves/followers","following_url":"https://api.github.com/users/HornsAndHooves/following{/other_user}","gists_url":"https://api.github.com/users/HornsAndHooves/gists{/gist_id}","starred_url":"https://api.github.com/users/HornsAndHooves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HornsAndHooves/subscriptions","organizations_url":"https://api.github.com/users/HornsAndHooves/orgs","repos_url":"https://api.github.com/users/HornsAndHooves/repos","events_url":"https://api.github.com/users/HornsAndHooves/events{/privacy}","received_events_url":"https://api.github.com/users/HornsAndHooves/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HornsAndHooves/lazy_object","description":"","fork":false,"url":"https://api.github.com/repos/HornsAndHooves/lazy_object","forks_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/forks","keys_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/teams","hooks_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/hooks","issue_events_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/events{/number}","events_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/events","assignees_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/assignees{/user}","branches_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/branches{/branch}","tags_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/tags","blobs_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/refs{/sha}","trees_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/statuses/{sha}","languages_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/languages","stargazers_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/stargazers","contributors_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/contributors","subscribers_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/subscribers","subscription_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/subscription","commits_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/commits{/sha}","git_commits_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/commits{/sha}","comments_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/comments{/number}","issue_comment_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/comments{/number}","contents_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/contents/{+path}","compare_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/merges","archive_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/downloads","issues_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues{/number}","pulls_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls{/number}","milestones_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/milestones{/number}","notifications_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/labels{/name}","releases_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/releases{/id}","created_at":"2014-10-03T01:17:11Z","updated_at":"2014-10-06T08:13:47Z","pushed_at":"2015-03-04T07:58:48Z","git_url":"git://github.com/HornsAndHooves/lazy_object.git","ssh_url":"git@github.com:HornsAndHooves/lazy_object.git","clone_url":"https://github.com/HornsAndHooves/lazy_object.git","svn_url":"https://github.com/HornsAndHooves/lazy_object","homepage":null,"size":150,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"HornsAndHooves:master","ref":"master","sha":"e38a4676848e4778d5b95357b00a2a71758e2127","user":{"login":"HornsAndHooves","id":7077270,"avatar_url":"https://avatars.githubusercontent.com/u/7077270?v=3","gravatar_id":"","url":"https://api.github.com/users/HornsAndHooves","html_url":"https://github.com/HornsAndHooves","followers_url":"https://api.github.com/users/HornsAndHooves/followers","following_url":"https://api.github.com/users/HornsAndHooves/following{/other_user}","gists_url":"https://api.github.com/users/HornsAndHooves/gists{/gist_id}","starred_url":"https://api.github.com/users/HornsAndHooves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HornsAndHooves/subscriptions","organizations_url":"https://api.github.com/users/HornsAndHooves/orgs","repos_url":"https://api.github.com/users/HornsAndHooves/repos","events_url":"https://api.github.com/users/HornsAndHooves/events{/privacy}","received_events_url":"https://api.github.com/users/HornsAndHooves/received_events","type":"Organization","site_admin":false},"repo":{"id":24742898,"name":"lazy_object","full_name":"HornsAndHooves/lazy_object","owner":{"login":"HornsAndHooves","id":7077270,"avatar_url":"https://avatars.githubusercontent.com/u/7077270?v=3","gravatar_id":"","url":"https://api.github.com/users/HornsAndHooves","html_url":"https://github.com/HornsAndHooves","followers_url":"https://api.github.com/users/HornsAndHooves/followers","following_url":"https://api.github.com/users/HornsAndHooves/following{/other_user}","gists_url":"https://api.github.com/users/HornsAndHooves/gists{/gist_id}","starred_url":"https://api.github.com/users/HornsAndHooves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HornsAndHooves/subscriptions","organizations_url":"https://api.github.com/users/HornsAndHooves/orgs","repos_url":"https://api.github.com/users/HornsAndHooves/repos","events_url":"https://api.github.com/users/HornsAndHooves/events{/privacy}","received_events_url":"https://api.github.com/users/HornsAndHooves/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HornsAndHooves/lazy_object","description":"","fork":false,"url":"https://api.github.com/repos/HornsAndHooves/lazy_object","forks_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/forks","keys_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/teams","hooks_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/hooks","issue_events_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/events{/number}","events_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/events","assignees_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/assignees{/user}","branches_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/branches{/branch}","tags_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/tags","blobs_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/refs{/sha}","trees_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/statuses/{sha}","languages_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/languages","stargazers_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/stargazers","contributors_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/contributors","subscribers_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/subscribers","subscription_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/subscription","commits_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/commits{/sha}","git_commits_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/git/commits{/sha}","comments_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/comments{/number}","issue_comment_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/comments{/number}","contents_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/contents/{+path}","compare_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/merges","archive_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/downloads","issues_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues{/number}","pulls_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls{/number}","milestones_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/milestones{/number}","notifications_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/labels{/name}","releases_url":"https://api.github.com/repos/HornsAndHooves/lazy_object/releases{/id}","created_at":"2014-10-03T01:17:11Z","updated_at":"2014-10-06T08:13:47Z","pushed_at":"2015-03-04T07:58:48Z","git_url":"git://github.com/HornsAndHooves/lazy_object.git","ssh_url":"git@github.com:HornsAndHooves/lazy_object.git","clone_url":"https://github.com/HornsAndHooves/lazy_object.git","svn_url":"https://github.com/HornsAndHooves/lazy_object","homepage":null,"size":150,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1"},"html":{"href":"https://github.com/HornsAndHooves/lazy_object/pull/1"},"issue":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/1"},"comments":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/HornsAndHooves/lazy_object/statuses/2f41d999029357bbe4d4647f4ade33c8bcf5cc5b"}}}}