{"id":19467,"date":"2017-03-10T14:40:04","date_gmt":"2017-03-10T05:40:04","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=19467"},"modified":"2024-05-06T11:40:50","modified_gmt":"2024-05-06T02:40:50","slug":"ruby-case%e3%82%92%e4%bd%bf%e3%81%84%e3%81%93%e3%81%aa%e3%81%99%e3%81%9f%e3%82%81%e3%81%ae9%e3%81%aetips","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/19467","title":{"rendered":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01"},"content":{"rendered":"<p>Ruby\u306b\u306f\u6761\u4ef6\u6587\u3068\u3057\u3066<span style=\"color: #254df2;\"><strong>if\u6587\u3068case\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>case\u6587\u306fif\u6587\u540c\u69d8\u306b\u6761\u4ef6\u5f0f\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u300c\u8907\u6570\u306e\u6761\u4ef6\u5f0f\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3057\u305f\u3044\u300d<br \/>\n\u300ccase\u6587\u306e\u4f7f\u3044\u65b9\u3092\u57fa\u672c\u304b\u3089\u77e5\u308a\u305f\u3044\u300d<\/strong><\/p>\n<p>\u3068\u3044\u3046\u65b9\u306b\u5411\u3051\u3066case\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306b\u3064\u3044\u3066\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div style=\"padding: 10px 5px 10px 20px; margin-bottom: 20px; border: 2px solid #ffe4e2;\">\n<span style=\"color: #54a870;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>ruby\u306ecase\u306e\u57fa\u672c<br \/>\n<span style=\"color: #54a870;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>case\u6587\u306e\u57fa\u672c\u3092\u307e\u305a\u306f\u7406\u89e3\u3057\u3088\u3046<br \/>\n<span style=\"color: #54a870;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>when\u306b\u8907\u6570\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u3088\u3046<br \/>\n<span style=\"color: #254df2;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>\u7bc4\u56f2\uff08Range\uff09\u3092\u6307\u5b9a\u3059\u308b<br \/>\n<span style=\"color: #254df2;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>\u6b63\u898f\u8868\u73fe\uff08regex\uff09\u3092\u6307\u5b9a\u3059\u308b<br \/>\n<span style=\"color: #254df2;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>if\/elsif\u3068\u306e\u6bd4\u8f03<br \/>\n<span style=\"color: #254df2;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>case\u3067break\u306f\u6307\u5b9a\u3067\u304d\u308b\u306e\uff1f\n<\/div>\n<p>case\u6587\u306fif\u6587\u540c\u69d8\u51e6\u7406\u3092\u5206\u5c90\u3059\u308b\u3068\u304d\u306b\u3088\u304f\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001\u4f7f\u3044\u65b9\u3092\u3057\u3063\u304b\u308a\u3068\u30de\u30b9\u30bf\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h2>case\u6587\u3068\u306f<\/h2>\n<p>case\u6587\u306f<span style=\"color: #0000ff;\"><strong>\u6bd4\u8f03\u3059\u308b\u5024\u3092\u6307\u5b9a<\/strong><\/span>\u3057\u3066\u3001\u8907\u6570\u306e\u6761\u4ef6\u5f0f\u306e\u4e2d\u304b\u3089\u4e00\u81f4\u3057\u305f\u6761\u4ef6\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>case\u6587\u306e\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/image44-640x309.jpg\" alt=\"\" width=\"640\" height=\"309\" class=\"aligncenter size-large wp-image-68287\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/image44-640x309.jpg 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/image44-150x72.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/image44-300x145.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/image44.jpg 700w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u4ed6\u306e\u8a00\u8a9e\u306e\u3088\u3046\u306bSwitch\u301ccase\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306f\u305b\u305a\u3001<span style=\"color: #54a870;\"><strong>case\u301cwhen<\/strong><\/span>\u3067\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>case\u306b\u6307\u5b9a\u3057\u305f<span style=\"color: #ff0000;\"><strong>\u300c\u5bfe\u8c61\u300d\u304cwhen\u306b\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u306e\u3069\u308c\u304b\u306b\u5f53\u3066\u306f\u307e\u308b<\/strong><\/span>\u5834\u5408\u3001\u305d\u308c\u306b\u3042\u3066\u306f\u307e\u3063\u305f\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3069\u308c\u306b\u3082\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u5834\u5408\u306f\u3001<span style=\"color: #339966;\"><strong>else<\/strong><\/span>\u306b\u3042\u308b\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u308b\u6d41\u308c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>case\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u6307\u5b9a\u3057\u305f\u5024\u304cwhen\u306e\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u304b\u78ba\u8a8d\u3057\u3001\u4e00\u81f4\u3057\u305f\u5834\u5408\u306f\u3042\u3066\u306f\u307e\u3063\u305fwhen\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = 2\r\n \r\ncase a\r\nwhen 1 then\r\n  puts &quot;1st&quot;\r\nwhen 2 then\r\n  puts &quot;2nd&quot;\r\nwhen 3 then\r\n  puts &quot;3rd&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >2nd<\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001case\u306b2\u304c\u683c\u7d0d\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8a\u3092\u6307\u5b9a\u3057\u3001when\u306e\u6761\u4ef6\u3067\u5024\u30921,2,3\u3067\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>a\u306e\u5024\u306f\u300cwhen 2 then\u300d\u306b\u5f53\u3066\u306f\u307e\u308b\u306e\u3067\u3001\u5f53\u3066\u306f\u307e\u3063\u305f\u6761\u4ef6\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u5217\u3092\u6bd4\u8f03\u3059\u308b\u5bfe\u8c61\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >fruits = &quot;orange&quot;\r\n \r\ncase fruits\r\nwhen &quot;apple&quot; then\r\n  puts &quot;apple&quot;\r\nwhen &quot;orange&quot; then\r\n  puts &quot;orange&quot;\r\nwhen &quot;melon&quot; then\r\n  puts &quot;melon&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >orange<\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u6587\u5b57\u5217\u300corange\u300d\u304c\u683c\u7d0d\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300cwhen \u201corange\u201d then\u300d\u306b\u4e00\u81f4\u3057\u307e\u3059\u3002<\/p>\n<h2>when\u306b\u8907\u6570\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u3088\u3046<\/h2>\n<p>case\u306ewhen\u306e\u6761\u4ef6\u306b\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u30ab\u30f3\u30de\u300c,\u300d\u3067\u533a\u5207\u3063\u3066\u8907\u6570\u306e\u6761\u4ef6\u3092\u66f8\u304f<\/strong><\/span>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u66f8\u3044\u305f\u6761\u4ef6\u306e\u3044\u305a\u308c\u304b\u304c\u300c\u5bfe\u8c61\u300d\u3068\u30de\u30c3\u30c1\u3057\u305f\u5834\u5408\u3001when\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = 4\r\n \r\ncase a\r\nwhen 1, 2, 3 then\r\n  puts &quot;lower then 4th&quot;\r\nwhen 4, 5 then\r\n  puts &quot;from 4th to 5th&quot;\r\nwhen 6 then\r\n  puts &quot;6th&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >from 4th to 5th<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001when\u306b\u8907\u6570\u306e\u6761\u4ef6\u3092\u30ab\u30f3\u30de\u3067\u533a\u5207\u3063\u3066\u4e26\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4e26\u3079\u305f\u6761\u4ef6\u5f0f\u306e\u3044\u305a\u308c\u304b\u304c\u300c\u5bfe\u8c61\u300d\u3068\u30de\u30c3\u30c1\u3057\u305f\u3068\u304d\u3001\u305d\u306ewhen\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u5834\u5408\u3001a\u306b4\u304c\u5165\u3063\u3066\u3044\u308b\u305f\u3081\u3001when 4, 5 then \u306b\u30de\u30c3\u30c1\u3057\u3001p \u201cfrom 4th to 5th\u201d\u3068\u3044\u3046\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>case\u6587\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<p>when\u306b\u306f\u69d8\u3005\u306a\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e2d\u3067\u3082\u7279\u306b\u5b9f\u969b\u306e\u4f7f\u7528\u983b\u5ea6\u304c\u9ad8\u3044\u3082\u306e\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u7bc4\u56f2\uff08Range\uff09\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p>\u305f\u3068\u3048\u3070\u3001\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30b5\u30a4\u30c8\u306b\u3066\u30e6\u30fc\u30b6\u306e\u5e74\u9f62\u306b\u5fdc\u3058\u3066\u3001\u30aa\u30b9\u30b9\u30e1\u3059\u308b\u5546\u54c1\u3092\u308f\u3051\u308b\u51e6\u7406\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u969b\u3001\u5e74\u9f62\u306e\u5e45\u3092\u7bc4\u56f2\u3067\u6307\u5b9a\u3059\u308b\u3088\u3046\u306b\u6761\u4ef6\u5206\u5c90\u3092\u4f5c\u6210\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u3068\u304d\u3001when\u306b\u8a18\u8f09\u3059\u308b\u6761\u4ef6\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = 25 #\u5e74\u9f62\r\n \r\ncase a\r\nwhen 6..22 then\r\n  puts &quot;\u5b66\u751f\u751f\u6d3b\u306b\u5fc5\u8981\u306a\u30aa\u30b9\u30b9\u30e1\u5546\u54c1&quot;\r\nwhen 23..59 then\r\n  puts &quot;\u793e\u4f1a\u4eba\u751f\u6d3b\u306b\u5fc5\u8981\u306a\u30aa\u30b9\u30b9\u30e1\u5546\u54c1&quot;\r\nwhen 60..100 then\r\n  puts &quot;\u5b9a\u5e74\u5f8c\u306e\u4eba\u751f\u306b\u30aa\u30b9\u30b9\u30e1\u306a\u5546\u54c1&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\u793e\u4f1a\u4eba\u751f\u6d3b\u306b\u5fc5\u8981\u306a\u30aa\u30b9\u30b9\u30e1\u5546\u54c1<\/pre>\n<p><span style=\"color: #0000ff;\"><strong>\u201c..\u201d\u306f\u5e45\u3092\u8868\u3057\u3066\u304a\u308a\u3001\u5de6\u306e\u6570\u5b57\u304b\u3089\u53f3\u306e\u6570\u307e\u3067\u306e\u7bc4\u56f2<\/strong><\/span>\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5bfe\u8c61\u306e\u5e74\u9f62\u306b\u5f53\u3066\u306f\u307e\u308b\u5e45\u306b\u3066\u51e6\u7406\u304c\u6b63\u3057\u304f\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6b63\u898f\u8868\u73fe\uff08regex\uff09\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p>\u6b63\u898f\u8868\u73fe\u3082when\u306e\u6761\u4ef6\u306b\u306f\u3088\u304f\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = &quot;SUB-DH003-A&quot;\r\n \r\ncase a\r\nwhen \/^A.+\/ then\r\n  puts &quot;Item series A&quot;\r\nwhen \/^B.+A$\/ then\r\n  puts &quot;Item series B patch A&quot;\r\nwhen \/^SUB.+A$\/ then\r\n  puts &quot;Item series SUB patch A&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Item series SUB patch A<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001case\u306ewhen\u306e\u6761\u4ef6\u306b\u6b63\u898f\u8868\u73fe\u3092\u66f8\u304f\u3053\u3068\u3067\u3001\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u6761\u4ef6\u691c\u7d22\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u898f\u8868\u73fe\u306f\u6163\u308c\u306a\u3044\u5185\u306f\u7406\u89e3\u304c\u96e3\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6570\u3092\u3053\u306a\u3059\u3053\u3068\u3067\u5f37\u529b\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6b66\u5668\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b63\u898f\u8868\u73fe\u3068\u306f\u305d\u3082\u305d\u3082\u4f55\u304b\u4e0d\u5b89\u306a\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u4e8b\u524d\u306b\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/11692\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/ruby-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u306e\u6b63\u898f\u8868\u73fe\uff01\u3011\u57fa\u790e\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u914d\u5217\uff08Array\uff09\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u914d\u5217\uff08Array\uff09\u306f\u305d\u306e\u307e\u307e\u3001when\u306e\u6761\u4ef6\u5f0f\u306b\u306f\u66f8\u3051\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u3067\u306f\u3001\u3069\u3046\u3059\u308c\u3070\u914d\u5217\u3092when\u306b\u66f8\u3051\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u7b54\u3048\u306f\u3001\u914d\u5217\u306e\u524d\u306b<span style=\"color: #339966;\"><strong>\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u300c*\u300d<\/strong><\/span>\u3092\u4ed8\u3051\u3066\u3001\u914d\u5217\u3092\u5c55\u958b\u3057when\u306b\u8a8d\u8b58\u3055\u305b\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u3082\u5177\u4f53\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = 4\r\n \r\ncase a\r\nwhen *[ 1, 2, 3 ] then\r\n  puts &quot;lower then 4th&quot;\r\nwhen *[ 4, 5 ] then\r\n  puts &quot;from 4th to 5th&quot;\r\nwhen *[ 6 ] then\r\n  puts &quot;6th&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >from 4th to 5th<\/pre>\n<p>a = 4 \u3067\u3059\u306e\u3067\u3001when *[ 4, 5 ] then\u306e\u3068\u3053\u308d\u3067\u30de\u30c3\u30c1\u3057\u3001p \u201cfrom 4th to 5th\u201d \u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u914d\u5217\u306f\u5c55\u958b\u3055\u308c\u308b\u3068\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u6570\u5024\u306e\u30ea\u30b9\u30c8\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u306f\u3001\u5b9f\u8cea\u4e0b\u8a18\u30b3\u30fc\u30c9\u3068\u7b49\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = 4\r\n \r\ncase a\r\nwhen 1, 2, 3 then\r\n  puts &quot;lower then 4th&quot;\r\nwhen 4, 5 then\r\n  puts &quot;from 4th to 5th&quot;\r\nwhen 6 then\r\n  puts &quot;6th&quot;\r\nelse\r\n  puts &quot;any else&quot;\r\nend<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001case\u306ewhen\u306b\u914d\u5217\u3092\u3057\u3066\u3044\u3059\u308b\u6642\u306b\u306f\u3001\u5fc5\u305a\u914d\u5217\u3092\u5c55\u958b\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u6761\u4ef6\u5f0f\u306b\u3059\u308b\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>array(\u914d\u5217)\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/15120\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/02\/image2-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u306e\u914d\u5217\u3011\u57fa\u790e\u304b\u3089\u767a\u5c55\u307e\u3067\u3092\u7db2\u7f85\u3057\u307e\u3057\u305f\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u30af\u30e9\u30b9\uff08Class\uff09\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p>ruby\u306b\u306f\u69d8\u3005\u306a\u30af\u30e9\u30b9\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u3092\u6271\u3046String\u30af\u30e9\u30b9\u3001\u6570\u5024\u3092\u6271\u3046Numeric\u30af\u30e9\u30b9\u3001\u914d\u5217\u3092\u6271\u3046Array\u30af\u30e9\u30b9\u306a\u3069\u304c\u305d\u308c\u306b\u3042\u305f\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u306e\u7a2e\u985e\u3092when\u306e\u6761\u4ef6\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u3069\u306e\u30af\u30e9\u30b9\u306b\u8a72\u5f53\u3059\u308b\u3082\u306e\u304b\u3092\u691c\u7d22\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >a = &quot;\u304a\u306f\u3088\u3046&quot;\r\n \r\ncase a\r\nwhen Numeric then\r\n  puts &quot;\u6570\u5024\u3067\u3059\u3002&quot;\r\nwhen String then\r\n  puts &quot;\u6587\u5b57\u5217\u3067\u3059\u3002&quot;\r\nwhen Array then\r\n  puts &quot;\u914d\u5217\u3067\u3059\u3002&quot;\r\nwhen Range then\r\n  puts &quot;\u7bc4\u56f2\u3067\u3059\u3002&quot;\r\nelse\r\n  puts &quot;\u305d\u308c\u4ee5\u5916\u3067\u3059\u3002&quot;\r\nend<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\u6587\u5b57\u5217\u3067\u3059\u3002<\/pre>\n<p>String\u3084Numeric\u306a\u3069\u30af\u30e9\u30b9\u306e\u540d\u79f0\u3092when\u306b\u6307\u5b9a\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5c11\u3005\u7279\u6b8a\u306a\u4f7f\u3044\u65b9\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3044\u304b\u306bwhen\u304c\u67d4\u8edf\u306a\u66f8\u304d\u65b9\u306e\u3067\u304d\u308b\u3082\u306e\u304b\u3068\u3044\u3046\u306e\u304c\u3088\u304f\u304a\u5206\u304b\u308a\u9802\u3051\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>if\/elsif\u3068\u306e\u6bd4\u8f03<\/h2>\n<p>case\u6587\u3068\u3088\u304f\u6bd4\u8f03\u3055\u308c\u308b\u51e6\u7406\u3068\u3057\u3066<span style=\"color: #339966;\"><strong>if\/elsif\u6587<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u51e6\u7406\u3068\u3057\u3066\u306f\u3069\u3061\u3089\u3082\u8907\u6570\u306e\u6761\u4ef6\u3092\u6271\u3046\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>case\u6587\u306e\u65b9\u304c\u6bd4\u8f03\u7684\u898b\u901a\u3057\u306e\u826f\u3044\u30b3\u30fc\u30c9\u306b\u306a\u308a\u3084\u3059\u3044<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u7406\u7531\u3068\u3057\u3066\u3001if\/elsif\u6587\u306e\u65b9\u304c\u51e6\u7406\u4e2d\u306b\u4f55\u5ea6\u3082\u201d\u5bfe\u8c61\u201d\u304c\u51fa\u3066\u304f\u308b\u70b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >if  \u6761\u4ef61 === \u5bfe\u8c61  then\r\n  \u51e6\u74061\r\nelsif  \u6761\u4ef62  === \u5bfe\u8c61  then\r\n  \u51e6\u74062\r\nelsif \u6761\u4ef63  === \u5bfe\u8c61  then\r\n  \u51e6\u74063\r\nelsif  \u30fb\u30fb\u30fb  then\r\n \u30fb\u30fb\u30fb\r\nelse\r\n  \u3069\u306e\u6761\u4ef6\u306b\u3082\u30de\u30c3\u30c1\u3057\u306a\u3044\u5834\u5408\u306b\u5b9f\u884c\u3059\u308b\u51e6\u7406\r\nend<\/pre>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u4e2d\u3001\u201d\u5bfe\u8c61\u201d\u304c3\u7b87\u6240\u3067\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>case\u6587\u3067\u306f1\u7b87\u6240\u3060\u3051\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u9055\u3044\u304c\u30b3\u30fc\u30c9\u306e\u898b\u901a\u3057\u304c\u826f\u3044\u304b\u60aa\u3044\u304b\u306e\u5927\u304d\u306a\u9055\u3044\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>\u8907\u6570\u306e\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3001if\/elsif\u3067\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u843d\u3061\u3066\u3057\u307e\u3044\u307e\u3059<\/strong><\/span>\u306e\u3067\u3001\u3046\u307e\u304f\u4f7f\u3044\u5206\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>if\/elsif\u6587\u542b\u3081\u305fif\u6587\u5168\u4f53\u306b\u3064\u3044\u3066\u7406\u89e3\u3092\u6df1\u3081\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/11835\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/11835_20180307-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Ruby\u5165\u9580\u3011if\u3084if else\u306e\u57fa\u672c\u304b\u3089AND\u3084OR\u3092\u4f7f\u3046\u5fdc\u7528\u307e\u3067\u5b8c\u5168\u89e3\u8aac!!<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>case\u3067break\u306f\u6307\u5b9a\u3067\u304d\u308b\u306e\uff1f<\/h2>\n<p>C\u8a00\u8a9e\u306a\u3069\u3001\u4ed6\u306e\u8a00\u8a9e\u3067\u306fcase\u6587\u307e\u305f\u306f\u305d\u308c\u3068\u540c\u7b49\u306eswitch\u6587\u306b\u3066\u3001<span style=\"color: #339966;\"><strong>break<\/strong><\/span>\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001case\u306ewhen\u306e\u30b3\u30fc\u30c9\u3092\u9014\u4e2d\u3067\u7d42\u4e86\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001<span style=\"color: #ff0000;\"><strong>ruby\u306ecase\u3067\u306f\u3001break\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff1a<\/p>\n<pre class=\"lang:default decode:true \">a = 2\r\n\r\ncase a\r\nwhen 1 then\r\n  puts \"start\"\r\n  break\r\n  puts \"1st\"\r\nwhen 2 then\r\n  puts \"start\"\r\n  break\r\n  puts \"2nd\"\r\nwhen 3 then\r\n  puts \"start\"\r\n  break\r\n  puts \"3rd\"\r\nelse\r\n  puts \"start\"\r\n  break\r\n  puts \"any else\"\r\nend<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"nums:false lang:default decode:true \">C:\/localhost\/ruby.rb: C:\/localhost\/ruby.rb:6: Invalid break (SyntaxError)\r\nC:\/localhost\/ruby.rb:10: Invalid break\r\nC:\/localhost\/ruby.rb:14: Invalid break\r\nC:\/localhost\/ruby.rb:18: Invalid break<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001case\u306ewhen\u306bbreak\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001<span style=\"color: #ff0000;\"><strong>\u6587\u6cd5\u30a8\u30e9\u30fc\uff08SyntaxError\uff09<\/strong><\/span>\u304c\u51fa\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u3082\u3068\u3082\u3068case\u3084switch\u306ebreak\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u4e00\u3064\u306ewhen\u306e\u6761\u4ef6\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u306ewhen\u306e\u6761\u4ef6\u5224\u5b9a\u306b\u79fb\u884c<\/strong><\/span>\u3059\u308b\u305f\u3081\u306e\u6587\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001ruby\u306ecase\u306ewhen\u306f\u8907\u6570\u306e\u6761\u4ef6\u5f0f\u3092\u4e26\u3079\u3089\u308c\u308b\u306e\u3067\u3001<span style=\"color: #ff0000;\"><strong>break\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u7686\u3055\u3093\u3082\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306fcase\u6587\u306b\u3064\u3044\u3066\u3001<\/p>\n<ul>\n<li>ruby\u306ecase\u6587\u306e\u57fa\u672c<\/li>\n<li>when\u306b\u8907\u6570\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u7bc4\u56f2\uff08Range\uff09\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6b63\u898f\u8868\u73fe\uff08regex\uff09\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/li>\n<li>if\/elsif\u3068\u306e\u6bd4\u8f03<\/li>\n<li>case\u3067break\u306f\u6307\u5b9a\u3067\u304d\u308b\u306e\uff1f<\/li>\n<\/ul>\n<p>\u306a\u3069\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>case\u306e\u610f\u5473\u3059\u308b\u3053\u3068\u306f\u3001\u307b\u307c<span style=\"color: #339966;\"><strong>if\/elsif<\/strong><\/span>\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>if\/elsif\u3092case\u3067\u3088\u308a<span style=\"color: #0000ff;\"><strong>\u7c21\u6f54\u306b\u66f8\u3051\u3001\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u6027\u304c\u5897\u3059\u3057\u3001\u6a5f\u80fd\u3082\u8c4a\u5bcc<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u3092\u899a\u3048\u3089\u308c\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001case\u306f\u305d\u308c\u3060\u3051\u3067\u306a\u304f\u3001\u7bc4\u56f2\u3084\u6b63\u898f\u8868\u73fe\u3001\u914d\u5217\u3001\u30af\u30e9\u30b9\u3067\u3082\u3001\u7c21\u6f54\u306a\u30b3\u30fc\u30c9\u3067\u7c21\u5358\u306b\u6761\u4ef6\u5206\u5c90\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306bruby\u306ecase\u306f\u899a\u3048\u3066\u304a\u304f\u3068\u975e\u5e38\u306b\u5f37\u529b\u306a\u6b66\u5668\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001case\u306e\u5b9f\u884c\u7d50\u679c\u3092\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>case\u306e\u5b9f\u884c\u7d50\u679c\u3092\u3001<span style=\"color: #0000ff;\"><strong>case\u4ee5\u964d\u306e\u30b3\u30fc\u30c9\u306b\u6e21\u3059\u969b\u306b\u3088\u304f\u4f7f\u7528<\/strong><\/span>\u3057\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3082\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>ruby\u306ecase\u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u305f\u3089\u3001\u307e\u305f\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u8fd4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u306b\u306f\u6761\u4ef6\u6587\u3068\u3057\u3066if\u6587\u3068case\u6587\u304c\u3042\u308a\u307e\u3059\u3002 case\u6587\u306fif\u6587\u540c\u69d8\u306b\u6761\u4ef6\u5f0f\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 \u300c\u8907\u6570\u306e\u6761\u4ef6\u5f0f\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3057\u305f\u3044\u300d \u300ccase\u6587\u306e\u4f7f\u3044\u65b9\u3092\u57fa\u672c\u304b\u3089\u77e5\u308a\u305f\u3044\u300d \u3068\u3044\u3046\u65b9\u306b\u5411 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":68291,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2352],"tags":[114,68],"class_list":["post-19467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-ruby","tag-68"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/19467\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/19467\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-10T05:40:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:40:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01\",\"datePublished\":\"2017-03-10T05:40:04+00:00\",\"dateModified\":\"2024-05-06T02:40:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467\"},\"wordCount\":188,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-14.jpg\",\"keywords\":[\"ruby\",\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467\",\"name\":\"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-14.jpg\",\"datePublished\":\"2017-03-10T05:40:04+00:00\",\"dateModified\":\"2024-05-06T02:40:50+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-14.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-14.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19467#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/19467","og_locale":"ja_JP","og_type":"article","og_title":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/19467","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-03-10T05:40:04+00:00","article_modified_time":"2024-05-06T02:40:50+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/19467#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/19467"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01","datePublished":"2017-03-10T05:40:04+00:00","dateModified":"2024-05-06T02:40:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/19467"},"wordCount":188,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/19467#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg","keywords":["ruby","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/19467","url":"https:\/\/www.sejuku.net\/blog\/19467","name":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/19467#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/19467#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg","datePublished":"2017-03-10T05:40:04+00:00","dateModified":"2024-05-06T02:40:50+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/19467#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/19467"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/19467#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-14.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/19467#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u306f\u3058\u3081\u3066\u306eRuby\uff01case\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/19467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=19467"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/19467\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/68291"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=19467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=19467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=19467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}