<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maeshima</author_name>
  <author_url>https://blog.hatena.ne.jp/maeshima/</author_url>
  <blog_title>maeshimaの日記</blog_title>
  <blog_url>https://maeshima.hateblo.jp/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>ブロックは定義された場所の束縛を保持する。 束縛とはローカル変数、インスタンス変数、selfなどの情報のこと スコープゲートは module class def class を Class.new {} にしたり、def を define_method {} にしたりすることでスコープをフラットにすることができる JavaやC#といった言語には、「内部スコープ」から「外部スコープ」の変数を参照できる仕組みもあるが、Rubyにはこうした可視性の入れ子構造は存在せず、スコープはきちんと区別されている。 どこでも使えてしまうグローバル変数の代わりに、トップレベルでのみ使えるmainオブジェクトのイン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaeshima.hateblo.jp%2Fentry%2F20110614%2F1308074771&quot; title=&quot;メタプログラミングRuby 第3章 - maeshimaの日記&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>2011-06-14 03:06:11</published>
  <title>メタプログラミングRuby 第3章</title>
  <type>rich</type>
  <url>https://maeshima.hateblo.jp/entry/20110614/1308074771</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
