<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitode909</author_name>
  <author_url>https://blog.hatena.ne.jp/hitode909/</author_url>
  <blog_title>hitode909の日記</blog_title>
  <blog_url>https://blog.sushi.money/</blog_url>
  <categories>
  </categories>
  <description>アサーションの導入というのが紹介されていて，便利そうだった． assertにブロックを渡して，結果が偽のとき例外が起きるようにする． こういう感じ． module Assertions class AssertionError &lt; StandardError end def assert(&amp;block) yield or raise AssertionError end end class Human include Assertions def initialize(name) assert{ name != nil } @name = name end end Human.new(nil)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.sushi.money%2Fentry%2F20100618%2F1276852448&quot; title=&quot; リファクタリング:Rubyエディションを読んだ - hitode909の日記&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>http://ecx.images-amazon.com/images/I/51UEaJSgPNL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-06-18 18:14:08</published>
  <title> リファクタリング:Rubyエディションを読んだ</title>
  <type>rich</type>
  <url>https://blog.sushi.money/entry/20100618/1276852448</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
