{"action":"created","comment":{"url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/comments/33246652","id":33246652,"diff_hunk":"@@ -0,0 +1,41 @@\n+module Formatter\n+  def sort_args(args)\n+    args.sort\n+  end\n+\n+  def reverse_args(args)\n+    args.reverse\n+  end\n+\n+  def non_alpha_check(args)\n+    args.map! { |arg| arg.gsub(/\\W+/, '_') }\n+  end\n+\n+  def first_last_check(args)\n+    args.each do  |arg|\n+      arg.prepend('XXX_') if arg.start_with?('a') || arg.end_with?('a')\n+    end\n+  end\n+end\n+\n+class ArgumentsLister\n+  include Formatter","path":"script4.rb","position":22,"original_position":22,"commit_id":"960a5058b1827a31a48aa3d3cd204cb45bfd24c6","original_commit_id":"960a5058b1827a31a48aa3d3cd204cb45bfd24c6","user":{"login":"spidzio","id":2708775,"avatar_url":"https://avatars.githubusercontent.com/u/2708775?v=3","gravatar_id":"","url":"https://api.github.com/users/spidzio","html_url":"https://github.com/spidzio","followers_url":"https://api.github.com/users/spidzio/followers","following_url":"https://api.github.com/users/spidzio/following{/other_user}","gists_url":"https://api.github.com/users/spidzio/gists{/gist_id}","starred_url":"https://api.github.com/users/spidzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidzio/subscriptions","organizations_url":"https://api.github.com/users/spidzio/orgs","repos_url":"https://api.github.com/users/spidzio/repos","events_url":"https://api.github.com/users/spidzio/events{/privacy}","received_events_url":"https://api.github.com/users/spidzio/received_events","type":"User","site_admin":false},"body":"Nice - `include`","created_at":"2015-06-25T11:57:25Z","updated_at":"2015-06-25T11:57:25Z","html_url":"https://github.com/dropsrobs/2_4_scripts/pull/2#discussion_r33246652","pull_request_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/comments/33246652"},"html":{"href":"https://github.com/dropsrobs/2_4_scripts/pull/2#discussion_r33246652"},"pull_request":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2","id":38538461,"html_url":"https://github.com/dropsrobs/2_4_scripts/pull/2","diff_url":"https://github.com/dropsrobs/2_4_scripts/pull/2.diff","patch_url":"https://github.com/dropsrobs/2_4_scripts/pull/2.patch","issue_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/2","number":2,"state":"open","locked":false,"title":"OOP script taking arguments","user":{"login":"dropsrobs","id":12935944,"avatar_url":"https://avatars.githubusercontent.com/u/12935944?v=3","gravatar_id":"","url":"https://api.github.com/users/dropsrobs","html_url":"https://github.com/dropsrobs","followers_url":"https://api.github.com/users/dropsrobs/followers","following_url":"https://api.github.com/users/dropsrobs/following{/other_user}","gists_url":"https://api.github.com/users/dropsrobs/gists{/gist_id}","starred_url":"https://api.github.com/users/dropsrobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropsrobs/subscriptions","organizations_url":"https://api.github.com/users/dropsrobs/orgs","repos_url":"https://api.github.com/users/dropsrobs/repos","events_url":"https://api.github.com/users/dropsrobs/events{/privacy}","received_events_url":"https://api.github.com/users/dropsrobs/received_events","type":"User","site_admin":false},"body":"OOP approach for earlier script taking arguments from command line.","created_at":"2015-06-25T11:44:59Z","updated_at":"2015-06-25T11:57:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"268385165d6dc0db61f9f79c56011092f8a5930b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/2/comments","statuses_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/statuses/960a5058b1827a31a48aa3d3cd204cb45bfd24c6","head":{"label":"dropsrobs:feature/oop-solution","ref":"feature/oop-solution","sha":"960a5058b1827a31a48aa3d3cd204cb45bfd24c6","user":{"login":"dropsrobs","id":12935944,"avatar_url":"https://avatars.githubusercontent.com/u/12935944?v=3","gravatar_id":"","url":"https://api.github.com/users/dropsrobs","html_url":"https://github.com/dropsrobs","followers_url":"https://api.github.com/users/dropsrobs/followers","following_url":"https://api.github.com/users/dropsrobs/following{/other_user}","gists_url":"https://api.github.com/users/dropsrobs/gists{/gist_id}","starred_url":"https://api.github.com/users/dropsrobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropsrobs/subscriptions","organizations_url":"https://api.github.com/users/dropsrobs/orgs","repos_url":"https://api.github.com/users/dropsrobs/repos","events_url":"https://api.github.com/users/dropsrobs/events{/privacy}","received_events_url":"https://api.github.com/users/dropsrobs/received_events","type":"User","site_admin":false},"repo":{"id":37593035,"name":"2_4_scripts","full_name":"dropsrobs/2_4_scripts","owner":{"login":"dropsrobs","id":12935944,"avatar_url":"https://avatars.githubusercontent.com/u/12935944?v=3","gravatar_id":"","url":"https://api.github.com/users/dropsrobs","html_url":"https://github.com/dropsrobs","followers_url":"https://api.github.com/users/dropsrobs/followers","following_url":"https://api.github.com/users/dropsrobs/following{/other_user}","gists_url":"https://api.github.com/users/dropsrobs/gists{/gist_id}","starred_url":"https://api.github.com/users/dropsrobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropsrobs/subscriptions","organizations_url":"https://api.github.com/users/dropsrobs/orgs","repos_url":"https://api.github.com/users/dropsrobs/repos","events_url":"https://api.github.com/users/dropsrobs/events{/privacy}","received_events_url":"https://api.github.com/users/dropsrobs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dropsrobs/2_4_scripts","description":"","fork":false,"url":"https://api.github.com/repos/dropsrobs/2_4_scripts","forks_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/forks","keys_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/teams","hooks_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/hooks","issue_events_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/events","assignees_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/tags","blobs_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/languages","stargazers_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/stargazers","contributors_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/contributors","subscribers_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/subscribers","subscription_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/subscription","commits_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/merges","archive_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/downloads","issues_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/labels{/name}","releases_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/releases{/id}","created_at":"2015-06-17T12:17:42Z","updated_at":"2015-06-25T10:55:42Z","pushed_at":"2015-06-25T11:45:00Z","git_url":"git://github.com/dropsrobs/2_4_scripts.git","ssh_url":"git@github.com:dropsrobs/2_4_scripts.git","clone_url":"https://github.com/dropsrobs/2_4_scripts.git","svn_url":"https://github.com/dropsrobs/2_4_scripts","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"dropsrobs:master","ref":"master","sha":"22fb197a8778b0b946d26cb16e465d2c99e3f664","user":{"login":"dropsrobs","id":12935944,"avatar_url":"https://avatars.githubusercontent.com/u/12935944?v=3","gravatar_id":"","url":"https://api.github.com/users/dropsrobs","html_url":"https://github.com/dropsrobs","followers_url":"https://api.github.com/users/dropsrobs/followers","following_url":"https://api.github.com/users/dropsrobs/following{/other_user}","gists_url":"https://api.github.com/users/dropsrobs/gists{/gist_id}","starred_url":"https://api.github.com/users/dropsrobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropsrobs/subscriptions","organizations_url":"https://api.github.com/users/dropsrobs/orgs","repos_url":"https://api.github.com/users/dropsrobs/repos","events_url":"https://api.github.com/users/dropsrobs/events{/privacy}","received_events_url":"https://api.github.com/users/dropsrobs/received_events","type":"User","site_admin":false},"repo":{"id":37593035,"name":"2_4_scripts","full_name":"dropsrobs/2_4_scripts","owner":{"login":"dropsrobs","id":12935944,"avatar_url":"https://avatars.githubusercontent.com/u/12935944?v=3","gravatar_id":"","url":"https://api.github.com/users/dropsrobs","html_url":"https://github.com/dropsrobs","followers_url":"https://api.github.com/users/dropsrobs/followers","following_url":"https://api.github.com/users/dropsrobs/following{/other_user}","gists_url":"https://api.github.com/users/dropsrobs/gists{/gist_id}","starred_url":"https://api.github.com/users/dropsrobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropsrobs/subscriptions","organizations_url":"https://api.github.com/users/dropsrobs/orgs","repos_url":"https://api.github.com/users/dropsrobs/repos","events_url":"https://api.github.com/users/dropsrobs/events{/privacy}","received_events_url":"https://api.github.com/users/dropsrobs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dropsrobs/2_4_scripts","description":"","fork":false,"url":"https://api.github.com/repos/dropsrobs/2_4_scripts","forks_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/forks","keys_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/teams","hooks_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/hooks","issue_events_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/events","assignees_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/tags","blobs_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/languages","stargazers_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/stargazers","contributors_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/contributors","subscribers_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/subscribers","subscription_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/subscription","commits_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/merges","archive_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/downloads","issues_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/labels{/name}","releases_url":"https://api.github.com/repos/dropsrobs/2_4_scripts/releases{/id}","created_at":"2015-06-17T12:17:42Z","updated_at":"2015-06-25T10:55:42Z","pushed_at":"2015-06-25T11:45:00Z","git_url":"git://github.com/dropsrobs/2_4_scripts.git","ssh_url":"git@github.com:dropsrobs/2_4_scripts.git","clone_url":"https://github.com/dropsrobs/2_4_scripts.git","svn_url":"https://github.com/dropsrobs/2_4_scripts","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2"},"html":{"href":"https://github.com/dropsrobs/2_4_scripts/pull/2"},"issue":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/2"},"comments":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dropsrobs/2_4_scripts/statuses/960a5058b1827a31a48aa3d3cd204cb45bfd24c6"}}}}