<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masanolinks</author_name>
  <author_url>https://blog.hatena.ne.jp/masanolinks/</author_url>
  <blog_title>masavoid</blog_title>
  <blog_url>https://masavo.jp/</blog_url>
  <categories>
    <anon>IT系雑記</anon>
  </categories>
  <description>自宅からコンビニに行ったら、財布もおサイフケータイも忘れた。 財布もケータイも必ず持っているという、隠れた前提条件に基づくメソッドだった。 イメージ def buy if @me.has_wallet? || @me.has_phone? # 購入処理 else raise NoMonnyError end rescue NoMonnyError =&gt; e logger.info &quot;お金もってないので、調達します&quot; @me.get_monny end Me#has_phone?も怪しい。Phone#any_battery?が前提になっている。 人間はクラッシュすると思わぬ行動を起こす。 実装が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasavo.jp%2Fentry%2F2025%2F04%2F01%2F135800&quot; title=&quot;財布を持ってないときの例外処理を忘れていた - masavoid&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>2025-04-01 13:58:00</published>
  <title>財布を持ってないときの例外処理を忘れていた</title>
  <type>rich</type>
  <url>https://masavo.jp/entry/2025/04/01/135800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
