<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kenmituo</author_name>
  <author_url>https://blog.hatena.ne.jp/kenmituo/</author_url>
  <blog_title>kenmituoの日記</blog_title>
  <blog_url>https://kenmituo.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>date_check?関数というのを作って def date_check?(value) #日付型が正しいか確認 return false if (色々な条件に対して問題があったら) return true endこれを判定させるときに if date_check?(day) @day=day else @day=Date.today end読みやすいけど書いていてだるい。ググって見つけた目からウロコな書き方 @day = if date_check?(day) day else Date.today endこれは凄い。感動しているなう。バラ色だよ！三項演算子でもいいんじゃね？ @day = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmituo.hatenadiary.org%2Fentry%2F20150119%2F1421649822&quot; title=&quot;Rubyで広めたいif文の書き方 - kenmituoの日記&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>2015-01-19 15:43:42</published>
  <title>Rubyで広めたいif文の書き方</title>
  <type>rich</type>
  <url>https://kenmituo.hatenadiary.org/entry/20150119/1421649822</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
