{"action":"created","issue":{"url":"https://api.github.com/repos/SBR2015/OoTalk/issues/96","labels_url":"https://api.github.com/repos/SBR2015/OoTalk/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/SBR2015/OoTalk/issues/96/comments","events_url":"https://api.github.com/repos/SBR2015/OoTalk/issues/96/events","html_url":"https://github.com/SBR2015/OoTalk/pull/96","id":92491754,"number":96,"title":"create compound class and test use seq","user":{"login":"Olivia-tou","id":7451929,"avatar_url":"https://avatars.githubusercontent.com/u/7451929?v=3","gravatar_id":"","url":"https://api.github.com/users/Olivia-tou","html_url":"https://github.com/Olivia-tou","followers_url":"https://api.github.com/users/Olivia-tou/followers","following_url":"https://api.github.com/users/Olivia-tou/following{/other_user}","gists_url":"https://api.github.com/users/Olivia-tou/gists{/gist_id}","starred_url":"https://api.github.com/users/Olivia-tou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Olivia-tou/subscriptions","organizations_url":"https://api.github.com/users/Olivia-tou/orgs","repos_url":"https://api.github.com/users/Olivia-tou/repos","events_url":"https://api.github.com/users/Olivia-tou/events{/privacy}","received_events_url":"https://api.github.com/users/Olivia-tou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-01T21:44:30Z","updated_at":"2015-07-02T13:45:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SBR2015/OoTalk/pulls/96","html_url":"https://github.com/SBR2015/OoTalk/pull/96","diff_url":"https://github.com/SBR2015/OoTalk/pull/96.diff","patch_url":"https://github.com/SBR2015/OoTalk/pull/96.patch"},"body":"久野 靖先生の方法で書いた。\r\ncompound class\r\ninitialize:配列初期化\r\nexec:式列実行してから、最後の結果を返す\r\nto_s:式列の表示\r\ntest:5の階乗を計算する！(block{}内式列計算) "},"comment":{"url":"https://api.github.com/repos/SBR2015/OoTalk/issues/comments/118038159","html_url":"https://github.com/SBR2015/OoTalk/pull/96#issuecomment-118038159","issue_url":"https://api.github.com/repos/SBR2015/OoTalk/issues/96","id":118038159,"user":{"login":"pyar6329","id":4640970,"avatar_url":"https://avatars.githubusercontent.com/u/4640970?v=3","gravatar_id":"","url":"https://api.github.com/users/pyar6329","html_url":"https://github.com/pyar6329","followers_url":"https://api.github.com/users/pyar6329/followers","following_url":"https://api.github.com/users/pyar6329/following{/other_user}","gists_url":"https://api.github.com/users/pyar6329/gists{/gist_id}","starred_url":"https://api.github.com/users/pyar6329/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyar6329/subscriptions","organizations_url":"https://api.github.com/users/pyar6329/orgs","repos_url":"https://api.github.com/users/pyar6329/repos","events_url":"https://api.github.com/users/pyar6329/events{/privacy}","received_events_url":"https://api.github.com/users/pyar6329/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T13:45:23Z","updated_at":"2015-07-02T13:45:23Z","body":"1 これ `do end` の中、インデント忘れてる\r\n\r\n```ruby\r\nlp = OoTalk::Loop.new(n_greater_than_0,s_product,n_decrement)\r\n@com =  OoTalk::Compound.new(n_eq_5, OoTalk::Compound.new(s_eq_1,OoTalk::Compound.new(lp,var_s)))\r\n```\r\n\r\n2 あとこれも `let` の方がいいかなぁ。\r\nhttp://betterspecs.org/jp/#let\r\n\r\n3 `be` じゃなく `eq`\r\n\r\n```ruby\r\nexpect(@com.exec).to eq 120\r\n```\r\n\r\n> 水曜日で、class図のようにArray の方法がいいかもと言われった。\r\n> compound class 二つ方法で実装したけど、どちを使うか先生に聞いたほうがいいかも。\r\n\r\nそうですね、前回土曜にどうなったか忘れたけど、相談したほうがいいかも"}}