{"id":5251,"date":"2020-04-21T10:22:57","date_gmt":"2020-04-21T01:22:57","guid":{"rendered":"https:\/\/yumishin.com\/?p=5251"},"modified":"2020-04-21T10:22:57","modified_gmt":"2020-04-21T01:22:57","slug":"ruby-test-silver-4","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=5251","title":{"rendered":"\u3010Ruby\u8cc7\u683c\u8a66\u9a13Silver\u3011\u6a21\u64ec\u554f\u984c\u3067\u8abf\u3079\u305f\u3053\u3068\u306e\u307e\u3068\u3081\uff0831-40\uff09"},"content":{"rendered":"<p>\u4eca\u56de\u306fRuby\u306e\u8cc7\u683c\u8a66\u9a13Silver\u306e\u6a21\u64ec\u554f\u984c\u3067\u8abf\u3079\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6a21\u64ec\u554f\u984c\u306f\u4ee5\u4e0b\u306eURL\u304b\u3089\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>  <a class=\"reference table\" href=\"https:\/\/gist.github.com\/sean2121\/945035ef2341f0c39bf40762cd8531e0\" rel=\"noopener noreferrer\"><br \/>\n    <span class=\"tbcell refttl\">\u53c2\u8003<\/span><br \/>\n    <span class=\"tbcell refcite\">silver_j.md<span>GitHub<\/span><\/span><br \/>\n  <\/a><\/p>\n<h2 id=\"i-0\">\u3010Ruby\u8cc7\u683c\u8a66\u9a13Silver\u3011\u6a21\u64ec\u554f\u984c\u3067\u8abf\u3079\u305f\u3053\u3068\u306e\u307e\u3068\u3081\uff0831-40\uff09<\/h2>\n<h4 id=\"i-1\">\u554f\u984c31<\/h4>\n<p>foo.object_id #bar\u3068\u540c\u3058<\/p>\n<p>bar.object_id #foo\u3068\u540c\u3058<\/p>\n<p>baz.object_id #\u4e0a\u8a18\u3068\u306f\u9055\u3046<\/p>\n<h4 id=\"i-2\">\u554f\u984c32<\/h4>\n<p>IO#gets\u3001IO#readline\u306f\u30d5\u30a1\u30a4\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u4e00\u884c\u8aad\u307f\u8fbc\u3093\u3067\u8aad\u307f\u8fbc\u307f\u306b\u6210\u529f\u3057\u305f\u6642\u306f\u3001\u305d\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3059\u3002<\/p>\n<p>IO#gets\u306fEOF\u306b\u5230\u9054\u3059\u308b\u3068nil\u3001IO#readline\u306fEOFError\u3092\u8fd4\u3059\u3002<\/p>\n<h4 id=\"i-3\">\u554f\u984c33<\/h4>\n<p>String#split(\/,\/, 2)\u3060\u3063\u305f\u3089\u3001\u30b9\u30e9\u30c3\u30b7\u30e5\u3067\u56f2\u307e\u308c\u305f\u6587\u5b57\u3067\u533a\u5207\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308b\u3002\u51fa\u529b\u7d50\u679c\u306e\u8981\u7d20\u6570\u3082\u6c7a\u3081\u3089\u308c\u308b\u3002<\/p>\n<h4 id=\"i-4\">\u554f\u984c34<\/h4>\n<p>Array\u30af\u30e9\u30b9\u306fObject\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u666e\u901a\u306bOK<\/p>\n<h4 id=\"i-5\">\u554f\u984c35<\/h4>\n<p>\u6b63\u898f\u8868\u73fe\u3092\u78ba\u8a8d<\/p>\n<h4 id=\"i-6\">\u554f\u984c36<\/h4>\n<p>\u554f\u984c\u304c\u304a\u304b\u3057\u3044\u3068\u601d\u3046<\/p>\n<h4 id=\"i-7\">\u554f\u984c37<\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3053\u3046\u3068\u3057\u305f\u969b\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8aad\u307f\u8fbc\u307f\u30e2\u30fc\u30c9\u306b\u306a\u308b\u3002\u3068\u3053\u308d\u304c\u30b3\u30fc\u30c9\u3067\u66f8\u304d\u8fbc\u3082\u3046\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001IO\u30a8\u30e9\u30fc\u767a\u751f\u3002<\/p>\n<h4 id=\"i-8\">\u554f\u984c38<\/h4>\n<p>Dir.rmdir\u3000\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664<\/p>\n<p>Dir.pwd\u3000\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u53d6\u5f97<\/p>\n<p>Dir.getwd\u3000\u30d5\u30eb\u30d1\u30b9\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u53d6\u5f97<\/p>\n<h4 id=\"i-9\">\u554f\u984c39<\/h4>\n<p>0-5\u306f\u7bc4\u56f2\u3068\u307f\u306a\u3055\u308c\u3001\u6587\u5b57\u3092\u53d6\u308a\u9664\u304f\u304c\u30018-\u306f\u7bc4\u56f2\u3068\u306f\u307f\u306a\u3055\u308c\u305a\u201d8\u2033\u3068\u201d-\u201c\u3092\u524a\u9664<\/p>\n<h4 id=\"i-10\">\u554f\u984c40<\/h4>\n<p>split\u306e\u9006\u306e\u52d5\u4f5c\u304cjoin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fRuby\u306e\u8cc7\u683c\u8a66\u9a13Silver\u306e\u6a21\u64ec\u554f\u984c\u3067\u8abf\u3079\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u6a21\u64ec\u554f\u984c\u306f\u4ee5\u4e0b\u306eURL\u304b\u3089\u53c2\u7167\u3067\u304d\u307e\u3059\u3002 \u3010Ruby\u8cc7\u683c\u8a66\u9a13Silver\u3011\u6a21\u64ec\u554f\u984c\u3067\u8abf\u3079\u305f\u3053\u3068\u306e\u307e\u3068\u3081\uff0831-40\uff09  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-5251","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5251"}],"version-history":[{"count":2,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5251\/revisions"}],"predecessor-version":[{"id":5254,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5251\/revisions\/5254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/5239"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}