{"id":20524,"date":"2017-03-30T18:43:18","date_gmt":"2017-03-30T09:43:18","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=20524"},"modified":"2024-05-06T11:41:17","modified_gmt":"2024-05-06T02:41:17","slug":"%e3%80%90%e5%9f%ba%e7%a4%8e%e3%81%8b%e3%82%89%e3%82%8f%e3%81%8b%e3%82%8b%e3%80%91ruby%e3%81%a7yaml%e3%82%92%e6%89%b1%e3%81%86%ef%bc%81%ef%bc%88%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%80%81%e6%9b%b8","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/20524","title":{"rendered":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306f<span style=\"color: #339966;\"><strong>YAML<\/strong><\/span>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p>YAML\u306f\u69cb\u9020\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3067\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>YAML\u3092\u4f7f\u3048\u3070\u3001\u7c21\u6f54\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001YAML\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066<\/p>\n<div style=\"padding: 10px 5px 10px 20px; margin-bottom: 20px; border: 5px solid #ffe4e2;\">\n<span style=\"color: #339966;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>YAML\u3068\u306f<br \/>\n<span style=\"color: #339966;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>YAML\u306e\u8aad\u307f\u8fbc\u307f<br \/>\n<span style=\"color: #339966;\"><strong>\u3010\u57fa\u790e\u3011<\/strong><\/span>YAML\u306e\u66f8\u304d\u8fbc\u307f<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>\u914d\u5217\u3084\u30cf\u30c3\u30b7\u30e5\u3092\u30cd\u30b9\u30c8\u3059\u308b<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>\u30b9\u30ab\u30e9\u30fc\u306e\u81ea\u52d5\u30c7\u30fc\u30bf\u578b\u5224\u5225<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>\u30d5\u30ed\u30fc\u30b9\u30bf\u30a4\u30eb\u3067\u306e\u8a18\u6cd5<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3010\u767a\u5c55\u3011<\/strong><\/span>YAML\u306e\u6210\u5f62\n<\/div>\n<p>\u3068\u3044\u3063\u305f\u5185\u5bb9\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>YAML\u3068\u306f<\/h2>\n<p><span style=\"color: #339966;\"><strong>YAML<\/strong><\/span>\u3068\u306f\u6b63\u5f0f\u540d\u79f0\u3092<span style=\"color: #339966;\"><strong>\u300cYAML Ain\u2019t Markup Language\u300d<\/strong><\/span>\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n<p>\u5192\u982d\u306b\u3082\u66f8\u3044\u305f\u3088\u3046\u306b\u3001\u69cb\u9020\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u6271\u3046\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>YAML\u3067\u306f\u4e3b\u306b\u3001<span style=\"color: #339966;\"><strong>\u914d\u5217\u3001\u30cf\u30c3\u30b7\u30e5\u3001\u30b9\u30ab\u30e9\u30fc<\/strong><\/span>\u306e3 \u3064\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<h4>\u914d\u5217<\/h4>\n<p>\u914d\u5217\u306f\u5148\u982d\u306b\u300c-\u300d\u3092\u4ed8\u3051\u3066\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u300c-\u300d\u306e\u5f8c\u308d\u306b\u306f\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u5fc5\u8981\u3067\u3042\u308b\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">- hoge\r\n- foo<\/pre>\n<h4>\u30cf\u30c3\u30b7\u30e5<\/h4>\n<p><span style=\"color: #339966;\"><strong>\u30cf\u30c3\u30b7\u30e5<\/strong><\/span>\u306f\u300c\u30ad\u30fc: \u5024\u300d\u306e\u5f62\u5f0f\u3067\u30b3\u30fc\u30c9\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30ed\u30f3(:)\u306e\u5f8c\u308d\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092 1 \u3064\u4ee5\u4e0a\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306e\u4ee3\u308f\u308a\u3068\u3057\u3066Tab\u30b3\u30fc\u30c9\u306f\u4f7f\u3048\u307e\u305b\u3093<\/strong><\/span>\u306e\u3067\u3054\u6ce8\u610f\u3092\u3002<\/p>\n<pre class=\"lang:default decode:true\">A: hoge\r\nB: foo\r\nC: bar<\/pre>\n<h4>\u30b9\u30ab\u30e9\u30fc<\/h4>\n<p><span style=\"color: #339966;\"><strong>\u30b9\u30ab\u30e9\u30fc<\/strong><\/span>\u3068\u3044\u3046\u8a00\u8449\u81ea\u4f53\u306f\u3088\u304f\u3001<span style=\"color: #339966\"><strong>\u30d9\u30af\u30c8\u30eb<\/strong><\/span>\u3068\u6bd4\u8f03\u3057\u3066\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d9\u30af\u30c8\u30eb\u304c\u901f\u5ea6\u306e\u3088\u3046\u306b\u5927\u304d\u3055\u3068\u65b9\u5411\u3092\u6301\u3064\u91cf\u306b\u5bfe\u3057\u3066\u3001\u30b9\u30ab\u30e9\u30fc\u306f<span style=\"color: #0000ff;\"><strong>\u5927\u304d\u3055\u306e\u307f\u3092\u6301\u3064\u91cf<\/strong><\/span>\u3092\u6307\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001Ruby\u3067\u306f\u914d\u5217\u3084\u30cf\u30c3\u30b7\u30e5\u306e\u3088\u3046\u306a\u3001\u4ed6\u306e\u30c7\u30fc\u30bf\u3092\u8981\u7d20\u3068\u3057\u3066\u3082\u3064\u30c7\u30fc\u30bf\u306f<span style=\"color: #339966;\"><strong>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong><\/span>\u3068\u547c\u3073\u3001\u305d\u308c\u4ee5\u5916\u306e\u30c7\u30fc\u30bf\u306f\u30b9\u30ab\u30e9\u30fc\u3068\u547c\u3093\u3067\u533a\u5225\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u4ee5\u5916\u306e\u30c7\u30fc\u30bf\u306f<span style=\"color: #0000ff;\"><strong>\u5177\u4f53\u7684\u306b\u306f\u6587\u5b57\u5217\u3084\u6570\u5024\u3001\u771f\u507d\u5024<\/strong><\/span>\u306a\u3069\u3067\u3059\u306d\u3002<\/p>\n<p>\u30b9\u30ab\u30e9\u30fc\u306e\u5177\u4f53\u4f8b\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">decimal: 100 # \u6574\u6570 (10 \u9032\u6570)\r\noctal: 0234 # \u6574\u6570 (8 \u9032\u6570)\r\nhexa: 0xFF # \u6574\u6570 (16 \u9032\u6570)\r\nfloat1: 0.05 # \u6d6e\u52d5\u5c0f\u6570\u70b9\r\nbool1: true # \u771f\r\nbool2: false # \u507d\r\ndate: 2017-01-01 # \u65e5\u4ed8\r\nstr1: 'true' # \u6587\u5b57\u5217<\/pre>\n<h2>YAML\u306e\u8aad\u307f\u8fbc\u307f<\/h2>\n<p>YAML\u30d5\u30a1\u30a4\u30eb\u306f\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u305d\u308c\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8aad\u307f\u8fbc\u3080\u969b\u306b\u306f<span style=\"color: #339966\"><strong>load_file()<\/strong><\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">- Monday\r\n-\r\n- \u3054\u98ef\u4f5c\u308a\r\n- \u6383\u9664\r\n- \u4f1a\u8b70<\/pre>\n<p>\u4e0a\u8a18\u306eYAML\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">require 'yaml'\r\n\r\nputs YAML.load_file('schedule.yaml').join(\",\")\r\n<\/pre>\n<p>load_file()\u306e\u5f15\u6570\u3068\u3057\u3066YAML\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\nMonday,,\u3054\u98ef\u4f5c\u308a,\u6383\u9664,\u4f1a\u8b70\r\n<\/pre>\n<h2>YAML\u306e\u66f8\u304d\u8fbc\u307f<\/h2>\n<p>\u6b21\u306bYAML\u30d5\u30a1\u30a4\u30eb\u3078\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u66f8\u304d\u8fbc\u307f\u306b\u306f<span style=\"color: #339966\"><strong>dump()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">YAML.dump( ['hoge', 'foo', 'bar'],\r\nFile.open('sample.yml', 'w') )\r\n\r\n# hoge, foo, bar<\/pre>\n<p>1\u3064\u76ee\u306e\u5f15\u6570\u306b\u306fYAML\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3078\u5909\u63db\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30012\u3064\u76ee\u306e\u5f15\u6570\u306b\u306f\u5909\u63db\u3057\u305fYAML\u3092\u51fa\u529b\u3059\u308b\u5148\u306eIO\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u914d\u5217\u3084\u30cf\u30c3\u30b7\u30e5\u3092\u30cd\u30b9\u30c8\u3059\u308b<\/h2>\n<p>\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u6df1\u304f\u3057\u3066\u3044\u304f\u3053\u3068\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u914d\u5217\u3084\u30cf\u30c3\u30b7\u30e5\u306f\u30cd\u30b9\u30c8\u5316<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n[\u914d\u5217\u306e\u5834\u5408]<\/p>\n<pre class=\"lang:default decode:true\">\r\n- apple\r\n-\r\n  - banana\r\n  - grape\r\n- peach\r\n<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\n[\"apple\", [\"banana\", \"grape\"], \"peach\"]\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u7b2c2\u8981\u7d20\u304cbanana\u3068grape\u306e\u914d\u5217\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[\u30cf\u30c3\u30b7\u30e5\u306e\u5834\u5408]<\/p>\n<pre class=\"lang:default decode:true\">\r\nA: apple\r\nB:\r\n  B1: banana\r\n  B2: grape\r\nC: peach\r\n<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\n{\"A\"=>\"apple\", \"B\"=>{\"B1\"=>\"banana\", \"B2\"=>\"grape\"}, \"C\"=>\"peach\"}\r\n<\/pre>\n<p>\u914d\u5217\u306e\u5834\u5408\u3068\u540c\u69d8\u306b\u7b2c2\u8981\u7d20\u306b\u30cf\u30c3\u30b7\u30e5\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u3055\u3089\u306b\u6df1\u304f\u3057\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u3055\u3089\u306b<span style=\"color: #0000ff;\"><strong>\u30cd\u30b9\u30c8\u3092\u6df1\u304f\u3057\u3066\u3044\u304f\u3053\u3068<\/strong><\/span>\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u914d\u5217\u306e\u4e2d\u306b\u30cf\u30c3\u30b7\u30e5\u3092\u542b\u3081\u305f\u308a\u3001\u30cf\u30c3\u30b7\u30e5\u306e\u4e2d\u306b\u914d\u5217\u3092\u542b\u3081\u305f\u308a\u3068\u3044\u3063\u3066\u305f\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u30b9\u30ab\u30e9\u30fc\u306e\u81ea\u52d5\u30c7\u30fc\u30bf\u578b\u5224\u5225<\/h2>\n<p>\u30b9\u30ab\u30e9\u30fc\u306e\u30c7\u30fc\u30bf\u306f<span style=\"color: #0000ff;\"><strong>\u81ea\u52d5\u3067\u578b\u304c\u5224\u5225<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u5024\u306b\u3088\u3063\u3066\u578b\u304c\u81ea\u52d5\u3067\u5224\u5225\u3055\u308c\u308b\u306e\u304b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u78ba\u304b\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">\r\ndecimal:        144                           # 10\u9032\u6570\r\noctal:          0234                          # 8\u9032\u6570\r\nhexa:           0xEB                          # 16\u9032\u6570\r\nfloat:          0.21                          # \u6d6e\u52d5\u5c0f\u6570\u70b9\r\nbool_true1:     true                          # \u771f\r\nbool_true2:     yes                           # \u771f\r\nbool_ture3:     on                            # \u771f\r\nbool_false1:    false                         # \u507d\r\nbool_false2:    no                            # \u507d\r\nbool_false3:    off                           # \u507d\r\nnull:           null                          # Null\r\ndate:           2017-08-24                    # \u65e5\u4ed8\r\nstamp:          2017-08-024 03:24:25 +09:00   # \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\r\nstring:         'bar'                         # \u6587\u5b57\u5217\r\nsymbol:         :bar                          # \u30b7\u30f3\u30dc\u30eb\r\n<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\n{\"decimal\"=>144, \"octal\"=>156, \"hexa\"=>235, \"float\"=>0.21, \"bool_true1\"=>true, \"bool_true2\"=>true, \"bool_ture3\"=>true, \"bool_false1\"=>false, \"bool_false2\"=>false, \"bool_false3\"=>false, nil=>nil, \"date\"=>#<Date: 2017-08-24 ((2457990j,0s,0n),+0s,2299161j)>, \"stamp\"=>\"2017-08-024 03:24:25 +09:00\", \"string\"=>\"bar\", \"symbol\"=>:bar}\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u4f8b\u3048\u30700xEB\u306f16\u9032\u6570\u3068\u3057\u3066\u81ea\u52d5\u3067\u5224\u5225\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30d5\u30ed\u30fc\u30b9\u30bf\u30a4\u30eb\u3067\u306e\u8a18\u6cd5<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u6df1\u3055\u306b\u3088\u3063\u3066\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u306f<span style=\"color: #339966;\"><strong>\u30d6\u30ed\u30c3\u30af\u30b9\u30bf\u30a4\u30eb<\/strong><\/span>\u3068\u547c\u3070\u308c\u307e\u3059\u3002<br \/>\n\u305d\u308c\u306b\u5bfe\u3057\u3066\u3001\u306a\u3058\u307f\u306e\u3042\u308b{}\u3084[]\u306e\u8a18\u53f7\u3067\u30c7\u30fc\u30bf\u3092\u8a18\u8ff0\u3059\u308b\u308b\u65b9\u6cd5\u306f<span style=\"color: #339966;\"><strong>\u30d5\u30ed\u30fc\u30b9\u30bf\u30a4\u30eb<\/strong><\/span>\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<p>[\u914d\u5217\u306e\u5834\u5408]<\/p>\n<pre class=\"lang:default decode:true\">\r\n[hoge, foo, bar]\r\n<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\n[\"hoge\", \"foo\", \"bar\"]\r\n<\/pre>\n<p>[\u30cf\u30c3\u30b7\u30e5\u306e\u5834\u5408]<\/p>\n<pre class=\"lang:default decode:true\">\r\n{ A: apple, B: banana, C: orange }\r\n<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">\r\n{\"A\"=>\"apple\", \"B\"=>\"banana\", \"C\"=>\"orange\"}\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Ruby\u3067\u304a\u306a\u3058\u307f\u306e\u8a18\u6cd5\u3067<span style=\"color: #0000ff;\"><strong>YAML\u5f62\u5f0f\u3067\u30c7\u30fc\u30bf\u3092\u6271\u3046<\/strong><\/span>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>YAML\u306e\u6210\u5f62<\/h2>\n<p>Ruby\u3067YAML\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306f\u3001<span style=\"color: #339966\"><strong>load()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>load()\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f15\u6570\u306b\u306fYAML\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb(sample.yml)\u3092\u8aad\u307f\u8fbc\u3080\u3068\u3057\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">fruits:\r\n- Banana\r\n- Apple\r\n- Grape<\/pre>\n<p>\u4ee5\u4e0b\u306f sample.yml \u3092\u30d1\u30fc\u30b9\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">require 'yaml'\r\ndata = open('sample.yml', 'r') { |f| YAML.load(f) }\r\np data\r\n\r\n#\u5b9f\u884c\u7d50\u679c\r\n{\"fruits\"=>;[\"Banana\", \"Apple\", \"Grape\"]}<\/pre>\n<p>YAML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u304c<span style=\"color: #339966\"><strong>\u30cf\u30c3\u30b7\u30e5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u306b\u5909\u63db\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30cf\u30c3\u30b7\u30e5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u66f4\u3057\u3066\u3001\u305d\u308c\u3092sample.yaml\u306b\u66f8\u304d\u8fbc\u3080\u306a\u3069\u3057\u3066\u6210\u5f62\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001YAML\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306aYAML\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7406\u89e3\u3057\u3066\u3044\u305f\u3060\u3051\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066<span style=\"color: #0000ff;\"><strong>\u30c7\u30fc\u30bf\u3068\u30ed\u30b8\u30c3\u30af\u3092\u5206\u96e2\u3055\u305b\u308b\u306e\u306f\u57fa\u790e\u7684\u306a\u3053\u3068<\/strong><\/span>\u3067\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001YAML\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u624b\u304f\u6d3b\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u5916\u306b\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3082\u3057YAML\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u306fYAML\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f YAML\u306f\u69cb\u9020\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3067\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002 YAML\u3092\u4f7f\u3048\u3070\u3001\u7c21\u6f54\u306b [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":58542,"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,997],"class_list":["post-20524","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-ruby","tag-yaml"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524\" \/>\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:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-30T09:43:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:41:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.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\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/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\\\/20524#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\",\"datePublished\":\"2017-03-30T09:43:18+00:00\",\"dateModified\":\"2024-05-06T02:41:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524\"},\"wordCount\":58,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-13.jpg\",\"keywords\":[\"ruby\",\"yaml\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524\",\"name\":\"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\\\/20524#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-13.jpg\",\"datePublished\":\"2017-03-30T09:43:18+00:00\",\"dateModified\":\"2024-05-06T02:41:17+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\\\/20524#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-13.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/image-13.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/20524#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-03-30T09:43:18+00:00","article_modified_time":"2024-05-06T02:41:17+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/20524#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/20524"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01","datePublished":"2017-03-30T09:43:18+00:00","dateModified":"2024-05-06T02:41:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/20524"},"wordCount":58,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/20524#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.jpg","keywords":["ruby","yaml"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/20524","url":"https:\/\/www.sejuku.net\/blog\/20524","name":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/20524#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.jpg","datePublished":"2017-03-30T09:43:18+00:00","dateModified":"2024-05-06T02:41:17+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/20524#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/20524"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/20524#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/image-13.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/20524#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Ruby\u5165\u9580\u3011YAML\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\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\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/20524","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=20524"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/20524\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/58542"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=20524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=20524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=20524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}