<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xmldtp</author_name>
  <author_url>https://blog.hatena.ne.jp/xmldtp/</author_url>
  <blog_title>ウィリアムのいたずらの、まちあるき、たべあるきーPART2</blog_title>
  <blog_url>https://xmldtp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>もう、忘れられていると思いますが、シリーズ「Ruby1.9、Windowsで」です。 次は、ここの順番の、 １－３．制御文 だと思います。 一般的には、制御文の話なのですが、Rubyの場合、制御式になります。 今回は、なぜ、式なのか？という話と、制御式で話す内容についてです。 ■なぜ、制御「式」なのか？ Rubyの制御を表す、ifやcase(Javaのswitchに相当）は、式のように、返り値を持つからです。 a=5 b=case a when 1 then 'a' when 2 then 'b' when 3..10 then 'c' end とやると、bに'c'が入ります。 ■制御式の概略…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxmldtp.hatenadiary.org%2Fentry%2F6441fac937a3f23f94b88b7e61c2c5e2&quot; title=&quot;Ruby1.9、Windowsで－その１１　制御式：概要 - ウィリアムのいたずらの、まちあるき、たべあるきーPART2&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>2008-09-26 16:39:00</published>
  <title>Ruby1.9、Windowsで－その１１　制御式：概要</title>
  <type>rich</type>
  <url>https://xmldtp.hatenadiary.org/entry/6441fac937a3f23f94b88b7e61c2c5e2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
