<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>会社の昼休みの読書に、プログラミングRuby言語編を読み始めました。この本メチャクチャ面白い!!詳しい言語リファレンスはもちろん、C言語にRubyインタプリタを組み込むといった高度な話題まで盛り沢山です。絶対買いの一冊です。さて、いよいよ。Rubyの目玉機能、イテレーターに入ります。 とりあえず復習 ハッシュのvalue取り出しに、配列演算子を指定できる。 sum = 0 {&quot;りんご&quot; =&gt; 1 ,&quot;バナナ&quot; =&gt; 3,&quot;パイナップル&quot; =&gt; 4}.each do |key| sum += key[1] end puts sum #=&gt; 8 eachでkeyのみを指定した場合、keyの中に配列…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070508%2F1178623268&quot; title=&quot; たのしいRuby 第20章 イテレーター - ボクノス&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-05-08 20:21:08</published>
  <title> たのしいRuby 第20章 イテレーター</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070508/1178623268</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
