<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby の unless と if：違いと使い分け・後置記法まとめ Ruby の unless は「条件が偽のときに実行する」制御構文です。if !condition と同じ意味ですが、否定を明示せずに読みやすく書けます。 基本構文の比較 # if で否定を書く場合 if !logged_in redirect_to login_path end # unless で書く場合（同じ意味） unless logged_in redirect_to login_path end unless は「〜でなければ」と読めるので、否定条件を自然な日本語に近い形で書けます。 if / unless の基…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F06%2F19%2F091234&quot; title=&quot;Ruby の unless と if：違いと使い分け・後置記法まとめ - Engineering Tech Dojo&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>2026-06-19 09:12:34</published>
  <title>Ruby の unless と if：違いと使い分け・後置記法まとめ</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/06/19/091234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
