{"id":883,"date":"2012-12-05T14:30:41","date_gmt":"2012-12-05T05:30:41","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=883"},"modified":"2018-11-14T16:33:58","modified_gmt":"2018-11-14T07:33:58","slug":"ruby2-0-preview2%e3%81%a7%e6%80%a0%e6%83%b0%e3%81%aa%e7%94%9f%e6%b4%bb%e3%82%92%e9%80%81%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2012\/12\/05\/ruby2-0-preview2%e3%81%a7%e6%80%a0%e6%83%b0%e3%81%aa%e7%94%9f%e6%b4%bb%e3%82%92%e9%80%81%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f\/","title":{"rendered":"ruby2.0-preview2\u3067\u6020\u60f0\u306a\u751f\u6d3b\u3092\u9001\u3063\u3066\u307f\u305f\u30021.9\u7248lazy\u3082\u3042\u308b\u3088\uff01\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u5bfa\u5ca1\u3067\u3059\u3002<\/p>\n<p>Ruby\u306e\u6b21\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u3001Ruby2.0\u306fRuby\u8a95\u751f\u304b\u308920\u5468\u5e74\u3068\u306a\u308b2013\u5e742\u670824\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u304c\u4e88\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3001Refinements\u3001Module#prepend\u306a\u3069\u306e\u9b45\u529b\u7684\u306a\u65b0\u6a5f\u80fd\u304c\u76ee\u767d\u62bc\u3057\u306a\u306e\u3067\u5f85\u3061\u9060\u3057\u3044\u9650\u308a\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fruby2.0\u306epreview\u7248\u3092\u4f7f\u3063\u3066\u3001\u65b0\u6a5f\u80fd\u306e\u4e2d\u3067\u3082\u4e00\u62bc\u3057\u306eEnumerable#lazy\u30e1\u30bd\u30c3\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u884c\u74b0\u5883\u306e\u6e96\u5099<\/h2>\n<p>\u307e\u305a\u306fRuby2.0\u306e\u5b9f\u884c\u74b0\u5883\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<br \/>\nrvm\u5c0e\u5165\u6e08\u307f\u306e\u74b0\u5883\u306b\u3001ruby2.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true \">\r\n$ rvm get head\r\n$ rvm get latest\r\n$ rvm reload\r\n$ rvm list known | grep '\\[ruby-\\]'\r\n[ruby-]1.8.6[-p420]\r\n[ruby-]1.8.7[-p371]\r\n[ruby-]1.9.1[-p431]\r\n[ruby-]1.9.2[-p320]\r\n[ruby-]1.9.3-p125\r\n[ruby-]1.9.3-p194\r\n[ruby-]1.9.3-p286\r\n[ruby-]1.9.3-[p327]\r\n[ruby-]1.9.3-head\r\n[ruby-]2.0.0-preview2\r\n$ rvm install 2.0.0\r\n$ rvm use ruby-2.0.0\r\n$ ruby -v\r\nruby 2.0.0dev (2012-12-01 trunk 38126) [x86_64-linux]<\/pre>\n<h2>lazy\u3057\u3066\u307f\u308b<\/h2>\n<p>\u3055\u3066\u3001ruby2.0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u672c\u984c\u306eEnumerable#lazy\u304c\u5982\u4f55\u306b\u6020\u60f0\u306a\u30e1\u30bd\u30c3\u30c9\u304b\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u203blazy\u3092\u76f4\u8a33\u3059\u308b\u3068\u300c\u6020\u60f0\u306a\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u304a\u3082\u3080\u308d\u306birb\u3092\u8d77\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n$ irb\r\n&gt; [1,2,3,4,5].select{|n| n.odd?} # normal select\r\n=&gt; [1, 3, 5]\r\n&gt; [1,2,3,4,5].lazy.select{|n| n.odd?}.force # lazy select\r\n=&gt; [1, 3, 5]\r\n<\/pre>\n<p>\u4e0a\u304c\u901a\u5e38\u306eselect\u3001\u4e0b\u304clazy\u3092\u4f7f\u3063\u305fselect\u3067\u3059\u3002<br \/>\nlazy,force\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u3053\u308c\u3060\u3051\u3067\u306f\u300c\u547c\u3073\u51fa\u3057\u304c\u5897\u3048\u308b\u306a\u3093\u3066\u3001\u5168\u7136\u6020\u60f0\u3058\u3083\u306a\u3044\u3058\u3083\u306a\u3044\u304b\uff01\uff01\u300d\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3069\u3053\u304c\u6020\u60f0\u306b\u306a\u3063\u305f\u306e\u304b\u8abf\u3079\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306flazy\u306e\u623b\u308a\u5024\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; [1,2,3,4,5].lazy\r\n=&gt; #&lt;Enumerator::Lazy: [1, 2, 3, 4, 5]&gt;<\/pre>\n<p>Enumerator::Lazy\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3060\u3068\u3044\u3046\u4e8b\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u306f\u3001select\u3092\u547c\u3073\u51fa\u3057\u305f\u5f8c\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; [1,2,3,4,5].lazy.select{|n| n.odd?}\r\n=&gt; #&lt;Enumerator::Lazy: #&lt;Enumerator::Lazy: [1, 2, 3, 4, 5]&gt;:select&gt;<\/pre>\n<p>\u4f55\u3060\u3053\u308a\u3083\u2026\u2026\u3002<br \/>\n\u306a\u3093\u3068\u306a\u304f\u3001\u5148\u307b\u3069\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304cEnumerator::Lazy\u30af\u30e9\u30b9\u3067\u30e9\u30c3\u30d7\u3055\u308c\u3066\u3044\u308b\u96f0\u56f2\u6c17\u3092\u611f\u3058\u307e\u3059\u3002<br \/>\nEnumerator::Lazy\u3068\u306f\u4f55\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3001\u307e\u305a\u306f\u89aa\u30af\u30e9\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; Enumerator::Lazy.superclass\r\n=&gt; Enumerator<\/pre>\n<p>Enumerator\u3068\u3044\u3046\u3053\u3068\u306f\u3001each\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u3048\u305d\u3046\u3067\u3059\u306d\u3002\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; [1,2,3,4,5].lazy.select{|n| n.odd?}.each{|n| p n}\r\n1\r\n3\r\n5\r\n=&gt; nil<\/pre>\n<p>\u554f\u984c\u7121\u304f\u4f7f\u3048\u307e\u3059\u306d\u3002<\/p>\n<p>\u6b21\u306fselect\u306b\u4e0e\u3048\u308b\u30d6\u30ed\u30c3\u30af\u306e\u51e6\u7406\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u3068\u8a00\u3063\u3066\u3082\u3001\u4e0e\u3048\u3089\u308c\u305f\u5f15\u6570\u3092\u8868\u793a\u3059\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u203b\u4f59\u8ac7\u3067\u3059\u304c\u3001p\u30e1\u30bd\u30c3\u30c9\u306fRuby1.9\u304b\u3089\u4e0e\u3048\u305f\u5f15\u6570\u3092\u305d\u306e\u307e\u307e\u8fd4\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3068\u3066\u3082\u4fbf\u5229\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >&gt; [1,2,3,4,5].lazy.select{|n| p n.odd?}\r\n=&gt; #&lt;Enumerator::Lazy: #&lt;Enumerator::Lazy: [1, 2, 3, 4, 5]&gt;:select&gt;<\/pre>\n<p>\u304a\u3084\u3001p\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u306d\u3002<br \/>\n\u3067\u306feach\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >&gt; lazy_odd_numbers = [1,2,3,4,5].lazy.select{|n| p n.odd?}\r\n=&gt; #&lt;Enumerator::Lazy: #&lt;Enumerator::Lazy: [1, 2, 3, 4, 5]&gt;:select&gt;\r\n&gt; lazy_odd_numbers.each{|n| p n}\r\ntrue\r\n1\r\nfalse\r\ntrue\r\n3\r\nfalse\r\ntrue\r\n5\r\n=&gt; nil<\/pre>\n<p>select\u3068each\u306b\u4e0e\u3048\u305f\u30d6\u30ed\u30c3\u30af\u304c\u4ea4\u4e92\u306b\u5b9f\u884c\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\nEnumerator::Lazy\u306fselect\u3084map\u306a\u3069\u306eEnumerable\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30e1\u30bd\u30c3\u30c9\u5b9f\u884c\u3092\u3001\u5024\u304c\u5fc5\u8981\u306b\u306a\u308b\u307e\u3067\u9045\u5ef6\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u4e0e\u3048\u3089\u308c\u305f\u30bf\u30b9\u30af\u306b\u7d0d\u671f\u30ae\u30ea\u30ae\u30ea\u307e\u3067\u624b\u3092\u4ed8\u3051\u306a\u3044\u3002\u306a\u3093\u3066\u6020\u60f0\u306a\u5974\u306a\u306e\u3067\u3057\u3087\u3046\uff01\uff01<\/p>\n<p>lazy\u306e\u6020\u60f0\u3063\u3077\u308a\u304c\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u3069\u3093\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u306e\u304b\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>\u7701\u30e1\u30e2\u30ea\u3067\u3042\u308b\u3053\u3068<\/h2>\n<p>\u500b\u4eba\u7684\u306blazy\u306e\u4e00\u756a\u306e\u5229\u70b9\u306f\u3053\u306e\u70b9\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u306e\u547c\u3073\u51fa\u3057\u306f\u7d50\u679c\u306f\u540c\u3058\u3067\u3059\u304c\u3001\u5b9f\u884c\u6642\u306e\u30e1\u30e2\u30ea\u6d88\u8cbb\u91cf\u306f\u5927\u304d\u304f\u9055\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; (1..1000).select{|n| n.even?}.map{|n| n.to_s}.each{|s| p s} # normal\r\n&gt; (1..1000).lazy.select{|n| n.even?}.map{|n| n.to_s}.each{|s| p s} # lazy<\/pre>\n<p>normal\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001select\u3092\u547c\u3073\u51fa\u3057\u305f\u6bb5\u968e\u30671\uff5e1000\u307e\u3067\u306e\u5076\u6570\u3059\u3079\u3066\u3092\u8981\u7d20\u3068\u3057\u305f\u914d\u5217\u304c<br \/>\n\u30e1\u30e2\u30ea\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u3001map\u3092\u547c\u3073\u51fa\u3057\u305f\u6bb5\u968e\u3067\u306f\u305d\u308c\u3092\u6587\u5b57\u5217\u306b\u3057\u305f\u914d\u5217\u304c\u30e1\u30e2\u30ea\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30e1\u30bd\u30c3\u30c9\u3092\u30c1\u30a7\u30a4\u30f3\u3057\u3066\u3044\u304f\u3068\u3001\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c\u7d50\u679c(\u30ec\u30b7\u30fc\u30d0) + \u4eca\u56de\u306e\u5b9f\u884c\u7d50\u679c\u3092\u30e1\u30e2\u30ea\u4e0a\u306b\u78ba\u4fdd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5bfe\u3057\u3066lazy\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001select,map\u306e\u6bb5\u968e\u3067\u30e1\u30e2\u30ea\u4e0a\u78ba\u4fdd\u3055\u308c\u308b\u306e\u306f\u3001Enumerator::Lazy\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3060\u3051\u3067\u3059\u3002<br \/>\neach\u306e\u6bb5\u968e\u3067\u3082\u3001\u30e1\u30e2\u30ea\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u308b\u306e\u306f\u5404\u8981\u7d201\u3064\u306b\u5bfe\u3057\u3066select,map\u306e\u30d6\u30ed\u30c3\u30af\u3092\u9069\u7528\u3057\u305f\u5024\u3060\u3051\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001lazy\u3092\u5229\u7528\u3059\u308b\u3068\u30e1\u30e2\u30ea\u52b9\u7387\u3092\u683c\u6bb5\u306b\u826f\u304f\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u7701\u30e1\u30e2\u30ea\u306b\u306a\u3063\u305f\u306a\u3089\u3001\u5b9f\u884c\u901f\u5ea6\u3082\u65e9\u3044\u306e\u3067\u306f\uff1f\u3068\u671f\u5f85\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001<br \/>\nEnumerator::Lazy\u3067\u306f\u5185\u90e8\u7684\u306bFiber\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u5927\u62b5\u306e\u5834\u5408\u5b9f\u884c\u901f\u5ea6\u306f\u9045\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h2>\u7121\u9650\u30ea\u30b9\u30c8\u306b\u9069\u7528<\/h2>\n<p>Ruby1.9\u304b\u3089\u5229\u7528\u53ef\u80fd\u306aEnumerator\u3092\u5229\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u7121\u9650\u30ea\u30b9\u30c8\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u3001Enumerator\u3092\u4f7f\u3063\u3066\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u3092\u6c42\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >&gt; fib = Enumerator.new {|yielder|\r\n&gt;   func = -&gt;(n) { n &lt; 2 ? n : func.(n-2) + func.(n-1)}\r\n&gt;   i = 0\r\n&gt;   loop {yielder &lt;&lt; func.(i);i+=1}\r\n&gt; }\r\n&gt; fib.take(11) # 0\uff5e10\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\r\n=&gt; [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]<\/pre>\n<p>Enumerator\u306fEnumerable\u30e2\u30b8\u30e5\u30fc\u30eb\u3092include\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u7d50\u679c\u3092\u3061\u3087\u3063\u3068\u52a0\u5de5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >&gt; fib.map{|n| \"#{n} is Fibonacci!\"}.take(11)<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3082\u3001\u3044\u3064\u307e\u3067\u305f\u3063\u3066\u3082\u7d50\u679c\u304c\u8fd4\u3063\u3066\u6765\u307e\u305b\u3093\u3002<br \/>\nfib\u306f\u7121\u9650\u306b\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u3092\u8fd4\u3057\u7d9a\u3051\u308b\u306e\u3067\u3001map\u306e\u6642\u70b9\u3067\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002<br \/>\n\u3053\u306e\u4f8b\u3067\u306ftake\u3068map\u306e\u9806\u5e8f\u3092\u5165\u308c\u66ff\u3048\u308c\u3070\u671b\u307f\u901a\u308a\u306e\u7d50\u679c\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001<br \/>\nlazy\u3092\u4f7f\u3046\u3068\u3053\u306e\u554f\u984c\u3092\u3082\u3063\u3068\u30a8\u30ec\u30ac\u30f3\u30c8\u306b\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\r\n&gt; fib.lazy.map{|n| \"#{n} is Fibonacci!\"}.take(11).force\r\n=&gt; [\"0 is Fibonacci!\", \"1 is Fibonacci!\", ...]<\/pre>\n<p>\u610f\u56f3\u3057\u305f\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\uff01<br \/>\n\u7121\u9650\u30ea\u30b9\u30c8\u306b\u5bfe\u3057\u3066lazy\u3092\u4f7f\u3046\u3068Enumerable\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u81ea\u7531\u81ea\u5728\u306b\u52a0\u5de5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u304a\u307e\u3051<\/h2>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4eca\u56de\u306flazy\u306e\u5049\u5927\u306a\u6020\u60f0\u3063\u3077\u308a\u3092\u3061\u3087\u3063\u3068\u3060\u3051\u3054\u7d39\u4ecb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u300clazy\u30b9\u30b2\u30a7!! Ruby1.9\u3067\u4f7f\u3048\u305f\u3089\u3044\u3044\u306e\u306b\u2026\u2026\u300d\u3068\u601d\u3063\u305f\u4eba\u5c45\u307e\u305b\u3093\u304b\uff1f<br \/>\n\u305d\u3093\u306a\u5947\u7279\u306a\u65b9\u5411\u3051\u306b\u3001Ruby1.9\u7248lazy\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/gist.github.com\/4201351\">https:\/\/gist.github.com\/4201351<\/a><br \/>\nRuby2.0\u3067Enumerator\u306b\u8ffd\u52a0\u3055\u308c\u305fsize\u3001\u4ed5\u69d8\u304c\u5909\u66f4\u3055\u308c\u305feach\u4ee5\u5916\u306b\u3064\u3044\u3066\u306f\u3001<br \/>\nruby2.0-preview2\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u305fspec\u304c\u901a\u308b\u3088\u3046\u306b\u4f5c\u3063\u305f\u306e\u3067\u3001\u305d\u3053\u305d\u3053\u52d5\u4f5c\u3057\u3066\u304f\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u5bfa\u5ca1\u3067\u3059\u3002<\/p>\n<p>Ruby\u306e\u6b21\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u3001Ruby2.0\u306fRuby\u8a95\u751f\u304b\u308920\u5468\u5e74\u3068\u306a\u308b2013\u5e742\u670824\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u304c\u4e88\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2012\/12\/05\/ruby2-0-preview2%e3%81%a7%e6%80%a0%e6%83%b0%e3%81%aa%e7%94%9f%e6%b4%bb%e3%82%92%e9%80%81%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[24],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/883"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=883"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/883\/revisions"}],"predecessor-version":[{"id":18010,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/883\/revisions\/18010"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}