<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xyuyux</author_name>
  <author_url>https://blog.hatena.ne.jp/xyuyux/</author_url>
  <blog_title>xyuyuxの日記</blog_title>
  <blog_url>https://xyuyux.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>まずは、データとlookup関数を定義 db = {:alice =&gt; {:title =&gt; &quot;Ms.&quot;, :job =&gt; &quot;sales&quot;}, :bob =&gt; {:title =&gt; &quot;Mr.&quot;, :job =&gt; &quot;engineer&quot;}} def lookup(key) -&gt;data { data.key?(key) ? Just.return(data[key]) : Nothing } end lookupのテスト p return!(db) &gt;= lookup(:bob) #=&gt; &lt;Just:0x882b588 @value={:title=&gt;&quot;Mr.&quot;, :job=&gt;&quot;engineer&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyuyux.hatenadiary.org%2Fentry%2F20120906%2F1347005539&quot; title=&quot;RubyでMaybeモナド - xyuyuxの日記&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>2012-09-06 17:12:19</published>
  <title>RubyでMaybeモナド</title>
  <type>rich</type>
  <url>https://xyuyux.hatenadiary.org/entry/20120906/1347005539</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
