<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakaearth</author_name>
  <author_url>https://blog.hatena.ne.jp/nakaearth/</author_url>
  <blog_title>nakaearthの日記</blog_title>
  <blog_url>https://nakaearth.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>rubyの勉強会した時にblock、proc、lambdaについてちょっと理解が曖昧なところがあり、うまく説明しきれなかったので、復習した。 で、参考になる記事があったので、それを元に理解するために自分で手でコード書いてみた。 そのときのコードを覚え書きの意味を込めて載せておく。 $:.unshift(File.dirname(__FILE__)) # blockの例 (1..5).each do |n| p n end def hello_block(&amp;block) p '明示的にblockを引数で受け取りcallで実行' block.call end hello_block do p 'h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaearth.hatenadiary.org%2Fentry%2F20140627%2F1403836947&quot; title=&quot;Procとlambdaの説明する時に書いたサンプル。 - nakaearthの日記&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>2014-06-27 11:42:27</published>
  <title>Procとlambdaの説明する時に書いたサンプル。</title>
  <type>rich</type>
  <url>https://nakaearth.hatenadiary.org/entry/20140627/1403836947</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
