{"id":6982,"date":"2019-11-16T23:41:10","date_gmt":"2019-11-16T14:41:10","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=6982"},"modified":"2023-05-27T22:35:36","modified_gmt":"2023-05-27T13:35:36","slug":"%e3%80%90ruby%e3%80%91%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e3%81%ae%e7%9f%a5%e8%ad%98","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=6982","title":{"rendered":"\u3010Ruby\u3011\u30e1\u30bd\u30c3\u30c9\u3001yield\u3001Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3059\u308b\u77e5\u8b58"},"content":{"rendered":"<h2>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u3093\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u308b\u65b9\u6cd5<\/h2>\n<p>Ruby\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u3066\u3082\u826f\u3044\u3067\u3059\u304c\u4e0b\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d.methods<\/pre>\n<h2>\u30e1\u30bd\u30c3\u30c9\u306e\u66f8\u304d\u65b9<\/h2>\n<pre class=\"lang:default decode:true\">def \u30e1\u30bd\u30c3\u30c9\u540d(\u5f15\u65701,\u5f15\u65702)\r\n  \u51e6\u7406\r\nend<\/pre>\n<p>\u306a\u304a\u3001\u623b\u308a\u5024\u306freturn\u6587\u3092\u66f8\u3051\u307e\u3059\u304c\u901a\u5e38\u306f\u8a18\u8ff0\u3057\u306a\u3044\u5834\u5408\u304c\u591a\u304f<span style=\"color: #ff0000;\"><strong>\u6700\u5f8c\u306b\u8a55\u4fa1\u3055\u308c\u305f\u5f0f\u306e\u5024\u304c\u8fd4\u308b<\/strong><\/span>\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u547d\u540d\u898f\u5247<\/h2>\n<ul>\n<li>\u5168\u3066\u5c0f\u6587\u5b57\u3067\u8907\u6570\u5358\u8a9e\u3064\u306a\u3052\u308b\u5834\u5408\u306f\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u3067\u533a\u5207\u308a\u307e\u3059\u3002\uff08\u4f8b\uff1aget_method)<\/li>\n<\/ul>\n<h3>\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u30eb\u30fc\u30eb<\/h3>\n<h4>\u771f\u507d\u5024(True\/False)\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u6700\u5f8c\u306b\u300c?\u300d\u3092\u3064\u3051\u308b\u3002(\u4f8b\uff1aArray\u30af\u30e9\u30b9\u306einclude?\u30e1\u30bd\u30c3\u30c9\uff09<\/p>\n<h4>\u7834\u58ca\u7684\u30e1\u30bd\u30c3\u30c9\uff08\u30af\u30e9\u30b9\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u66f8\u304d\u63db\u3048\u308b\u30e1\u30bd\u30c3\u30c9\uff09<\/h4>\n<p>\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u6700\u5f8c\u306b\u300c!\u300d\u3092\u3064\u3051\u308b\u3002<\/p>\n<h2>\u5f15\u6570<\/h2>\n<h3>\u5f15\u6570\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u4ed8\u304d\u306e\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b<span style=\"color: #ff0000;\"><strong>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u30a4\u30b3\u30fc\u30eb\u3067\u5024\u3092\u4ee3\u5165\u3059\u308b\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u4ed8\u304d\u306e\u5f15\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span>\u3082\u3061\u308d\u3093\u3001\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3057\u3066\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070<span style=\"color: #ff0000;\"><strong>\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">def people(pea = '\u65e5\u672c\u4eba')\r\n  pea\r\nend\r\n\r\nputs people\r\nputs people('\u4e2d\u56fd\u4eba')<\/pre>\n<h3>\u53ef\u5909\u9577\u5f15\u6570<\/h3>\n<pre class=\"lang:default decode:true\">def \u30e1\u30bd\u30c3\u30c9\u540d(\u5f15\u65701,\u5f15\u65702,*\u53ef\u5909\u9577\u5f15\u6570)\r\n  #\u51e6\u7406\u5185\u5bb9\r\nend<\/pre>\n<p>\u5f15\u6570\u306e\u524d\u306b\u300c*(\u30a2\u30b9\u30bf\u30ea\u30b9\u30af)\u300d\u3092\u3064\u3051\u308b\u3053\u3068\u3067<span style=\"color: #ff0000;\"><strong>\u500b\u6570\u306b\u5236\u9650\u306e\u306a\u3044\u53ef\u5909\u9577\u5f15\u6570\u3092\u4f5c\u308b<\/strong><\/span>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>**(\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u4e8c\u3064\uff09<\/h4>\n<p>\u5f8c\u306b\u3054\u8aac\u660e\u3059\u308b<span style=\"color: #ff0000;\"><strong>\u30b7\u30f3\u30dc\u30eb\u4ed8\u304d\u5f15\u6570<\/strong><\/span>\u3092\u53ef\u5909\u9577\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\uff08\u30b7\u30f3\u30dc\u30eb\u4ed8\u304d\u5f15\u6570\uff09<\/h3>\n<p>\u5f15\u6570\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u30e9\u30d9\u30eb\u3092\u6307\u5b9a\u3057\u3066\u547c\u3073\u51fa\u305b\u307e\u3059\u3002\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f<span style=\"color: #ff0000;\"><strong>\u547c\u3073\u51fa\u3057\u5074\u304b\u3089\u4f55\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u304b\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u70b9<\/strong><\/span>\u3067\u3059\u3002\u306a\u304a\u3001\u3053\u306e\u547c\u3073\u51fa\u3057\u65b9\u306e\u5834\u5408\u306f\u547c\u3073\u51fa\u3057\u65b9\u304b\u3089<span style=\"color: #ff0000;\"><strong>\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u9806\u756a\u3092\u5909\u3048\u3066\u3082\u547c\u3073\u51fa\u305b\u307e\u3059\u3002<\/strong><\/span><\/p>\n<pre class=\"lang:default decode:true\">def \u30e1\u30bd\u30c3\u30c9\u540d(\u30e9\u30d9\u30eb: \u5f15\u6570)\r\n  #\u51e6\u7406\u5185\u5bb9\r\nend\r\n\r\n\u30e1\u30bd\u30c3\u30c9\u540d(\u30e9\u30d9\u30eb: \u5024)<\/pre>\n<h3>\u5f15\u6570\u306e\u9806\u756a<\/h3>\n<p>Ruby\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u306f\u69d8\u3005\u306a\u7a2e\u985e\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u304c\u3001\u4e26\u3079\u308b\u9806\u756a\u3082\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u9806\u756a\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u901a\u5e38\u306e\u5f15\u6570<\/li>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u4ed8\u304d\u5f15\u6570<\/li>\n<li>\u53ef\u5909\u9577\u5f15\u6570(\u4e00\u3064\u3060\u3051\uff09<\/li>\n<li>\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570(\u30b7\u30f3\u30dc\u30eb\u4ed8\u304d\u5f15\u6570)<\/li>\n<li>**\u3092\u4f7f\u3063\u305f\u4efb\u610f\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\uff08\u4e00\u3064\u3060\u3051\uff09<\/li>\n<li>&amp;\u3092\u4f7f\u3063\u305f\u30d6\u30ed\u30c3\u30af\u3092\u53d7\u3051\u53d6\u308b\u5f15\u6570<\/li>\n<\/ol>\n<h2>\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057<\/h2>\n<p>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u30ab\u30c3\u30b3\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u4ed8\u3051\u3066\u3082\u52d5\u4f5c\u3057\u307e\u3059\u3002\uff09<\/p>\n<h2>\u30a8\u30a4\u30ea\u30a2\u30b9\u30e1\u30bd\u30c3\u30c9<\/h2>\n<p>\u4f8b\u3048\u3070\u3001String\u30af\u30e9\u30b9\u306elength\u30e1\u30bd\u30c3\u30c9\u3068size\u30e1\u30bd\u30c3\u30c9\u306f\u540d\u524d\u304c\u7570\u306a\u308b\u3060\u3051\u3067\u5168\u304f\u540c\u3058\u50cd\u304d\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u5225\u540d\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3046\u3053\u3068\u3067<span style=\"color: #ff0000;\"><strong>\u30a8\u30a4\u30ea\u30a2\u30b9\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30bd\u30c3\u30c9\u306e\u516c\u958b\u7bc4\u56f2<\/h2>\n<p>\u306a\u304a\u3001class\u306einitialize\u30e1\u30bd\u30c3\u30c9\u306f\u7279\u6b8a\u306a\u30e1\u30bd\u30c3\u30c9\u306a\u306e\u3067\u5bfe\u8c61\u5916\u3067\u3059\u3002<\/p>\n<h3>public<\/h3>\n<p>\u8ab0\u304b\u3089\u3082\u898b\u3048\u307e\u3059\u3002\u4f55\u3082\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3053\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>protected<\/h3>\n<p>\u3042\u307e\u308a\u4f7f\u308f\u308c\u306a\u3044\u3002\uff08\u3061\u306a\u307f\u306b\u3001Java\u306eprotected\u3068\u306f\u6319\u52d5\u304c\u7570\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<h3>private<\/h3>\n<p>\u81ea\u5206\u304b\u3089\u3057\u304b\u898b\u3048\u306a\u3044\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002\uff08\u4e0b\u306e\u4f8b\u3067\u306f\u30e1\u30bd\u30c3\u30c91\u30822\u3082\u3069\u3061\u3089\u3082private\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<pre class=\"lang:default decode:true \">private\r\n  def \u30e1\u30bd\u30c3\u30c91\r\n  end\r\n\r\n  def \u30e1\u30bd\u30c3\u30c92\r\n  end<\/pre>\n<p>\u547c\u3073\u51fa\u3059\u5834\u5408\u306f\u30e1\u30bd\u30c3\u30c9\u540d\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u306e\u3088\u3046\u306bself.\u306f\u4ed8\u3051\u307e\u305b\u3093\u3002<\/p>\n<h2>yield<\/h2>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u30d6\u30ed\u30c3\u30af\u306b\u5f15\u6570\u3092\u6e21\u3057\u305f\u308a\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">def \u30e1\u30bd\u30c3\u30c9\u540d\r\n  yield \u5f15\u65701\u3001\u5f15\u65702\r\nend<\/pre>\n<h3>yield\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u5074<\/h3>\n<p>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u30d6\u30ed\u30c3\u30af\uff08{}\u3067\u56f2\u307e\u308c\u305f\u5185\u5bb9\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\u30e1\u30bd\u30c3\u30c9\u540d {|\u5f15\u65701,\u5f15\u65702| \u5f15\u65701\u3084\u5f15\u65702\u3092\u4f7f\u3063\u305f\u51e6\u7406}<\/pre>\n<h3>\u7528\u9014<\/h3>\n<p>\u30e1\u30bd\u30c3\u30c9\u5185\u3067<span style=\"color: #ff0000;\"><strong>\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4efb\u610f\u306e\u51e6\u7406\u3092\u547c\u3073\u51fa\u3057\u3066\u3082\u3089\u3046\u305f\u3081<\/strong><\/span>\u306b\u4f7f\u3044\u307e\u3059\u3002(JavaScript\u3067\u8a00\u3048\u3070\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u3088\u3046\u306a\u6271\u3044\u3067\u3059\u3002\uff09<\/p>\n<h2>Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p>Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30d6\u30ed\u30c3\u30af\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5316\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Proc.new do\r\n  #\u30d6\u30ed\u30c3\u30af\u306e\u51e6\u7406\u5185\u5bb9\r\nend<\/pre>\n<h3>\u5909\u6570\u5229\u7528\u6642\u306e\u6ce8\u610f\u70b9<\/h3>\n<p>\u306a\u304a\u3001Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u81ea\u4f53\u306fProc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5916\u5074\u306e\u5909\u6570\u306e\u5024\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u52d5\u7684\u306b\u5f15\u6570\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u306f\u305d\u306e\u5909\u66f4\u3055\u308c\u305f\u5909\u6570\u3092\u4f7f\u3046\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001<span style=\"color: #ff0000;\"><strong>Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u6642\u306b\u5909\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u5f8c\u3067Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u3068\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046<\/strong><\/span>\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>call\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3066\u4f5c\u6210\u3057\u305f\u30d6\u30ed\u30c3\u30af\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3055\u305b\u308b\u306b\u306fcall\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8.call(\u5f15\u6570)<\/pre>\n<h3>\u30e1\u30bd\u30c3\u30c9\u3067Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059\u306b\u306f\uff1f<\/h3>\n<pre class=\"lang:default decode:true\">def \u30e1\u30bd\u30c3\u30c9\u540d(&amp;\u30d6\u30ed\u30c3\u30af\u3068\u3057\u3066\u6e21\u3059\u5f15\u6570\uff09\r\n  \u5f15\u6570.call(Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5f15\u6570\uff09\r\nend<\/pre>\n<h3>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u5074<\/h3>\n<p>\u547c\u3073\u51fa\u3059\u5074\u306e\u8a18\u8ff0\u65b9\u6cd5\u3068\u3057\u3066\u306fyield\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u5834\u5408\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\u30e1\u30bd\u30c3\u30c9\u540d {|\u5f15\u65701,\u5f15\u65702| \u5f15\u65701\u3084\u5f15\u65702\u3092\u4f7f\u3063\u305f\u51e6\u7406}<\/pre>\n<h3>yield\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u307e\u305f\u3001yield\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3082Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u547c\u3073\u51fa\u3057\u305f\u308a\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Proc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8.yield(\u5f15\u6570)<\/pre>\n<h2>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u30d6\u30ed\u30c3\u30af\u304c\u6e21\u3055\u308c\u305f\u304b\u5224\u65ad\u3059\u308b\u306b\u306f\uff1f<\/h2>\n<p>\u4e0b\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002true\/false\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true  \">block_given?<\/pre>\n","protected":false},"excerpt":{"rendered":"\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u3093\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u308b\u65b9\u6cd5 Ruby\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u3066\u3082\u826f\u3044\u3067\u3059\u304c\u4e0b\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d.methods \u30e1\u30bd\u30c3\u30c9\u306e\u66f8\u304d\u65b9 def \u30e1\u30bd\u30c3\u30c9\u540d(\u5f15\u65701,\u5f15\u65702) [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6982"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6982"}],"version-history":[{"count":20,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6982\/revisions"}],"predecessor-version":[{"id":20479,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6982\/revisions\/20479"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6982"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}