<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mTakata</author_name>
  <author_url>https://blog.hatena.ne.jp/mTakata/</author_url>
  <blog_title>Sun~sun~Flower's</blog_title>
  <blog_url>https://www.sunsunflowers.com/</blog_url>
  <categories>
    <anon>IT・プログラミング</anon>
  </categories>
  <description>こんにちは。 当ページにアクセスしてくださり、ありがとうございます。 この記事は、プログラミング言語「Ruby」についての記事になります。 【目次】 問題.1 ワンライナーの説明 模範回答 問題.2 模範回答 問題.1 以下のコードの２行目以降を、ワンライナーで書き直してください。 ```Ruby 1 str = &quot;is this a pen?&quot;2 if str.include?(&quot;?&quot;)3 puts &quot;yes, it is.&quot;4 end ``` ワンライナーの説明 何行にも書かれたコードを一つにまとめて、読みやすくすることです。 例えば、 ```Ruby 1 if message == &quot;プ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sunsunflowers.com%2Fentry%2Fit%2Fruby-if-while-oneliner&quot; title=&quot;【初心者向け】【Ruby】if・while文とワンライナーの書き方について - Sun~sun~Flower&amp;#39;s&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mTakata/20200509/20200509221329.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-13 10:00:00</published>
  <title>【初心者向け】【Ruby】if・while文とワンライナーの書き方について</title>
  <type>rich</type>
  <url>https://www.sunsunflowers.com/entry/it/ruby-if-while-oneliner</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
