<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby の Proc オブジェクトを評価する場合、いくつかのメソッドが用意されているのでまとめてみました。 proc = Proc.new { |it| 42 + it } proc.call 1 # =&gt; 43 proc[2] # =&gt; 44 proc === 3 # =&gt; 45 proc.yield 4 # =&gt; 46 #call, #[], #===, #yield の4つのメソッドで評価することができます。 この4つはすべて同等の処理になります。 また、メソッド呼び出し以外にも .() で #call を呼び出すことができるシンタックスシュガーがあります。 proc = Proc.n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F07%2F29%2F204448&quot; title=&quot;Ruby の Proc オブジェクトの評価方法まとめ - Secret Garden(Instrumental)&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-07-29 20:44:48</published>
  <title>Ruby の Proc オブジェクトの評価方法まとめ</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2015/07/29/204448</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
