<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakura-1</author_name>
  <author_url>https://blog.hatena.ne.jp/sakura-1/</author_url>
  <blog_title>さくらんぼのlambda日記</blog_title>
  <blog_url>https://lambdasakura.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyのmainについて議論をまとめてみます(一方的に教わっただけとも言う) RubyのTopLevelはmainというObjectとして実行される(p selfすれば分かる) Objectなので@hogeとかするとインスタンス変数を宣言もできる 自分でdefして作ったメソッドはmainのprivate_methodとして追加されている mainにはKernelモジュールがMix-inされている ここで、Kernelモジュールの関数を上書きしてしまうとその動作を変更することができて 便利です。しかも100％全員が読むことが決定している訳です(mainを呼ばないRubyプログラムは存在しない)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flambdasakura.hatenablog.com%2Fentry%2F20080916%2F1221583495&quot; title=&quot;eval蹂躙 - さくらんぼのlambda日記&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>2008-09-16 01:44:55</published>
  <title>eval蹂躙</title>
  <type>rich</type>
  <url>https://lambdasakura.hatenablog.com/entry/20080916/1221583495</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
