<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nokturnalmortum</author_name>
  <author_url>https://blog.hatena.ne.jp/nokturnalmortum/</author_url>
  <blog_title>地獄のネコブログ</blog_title>
  <blog_url>https://anekos.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>PG</anon>
  </categories>
  <description>Ruby で、Object#initialize の引数をそのままインスタンス変数とする方法。 を、ちょっと考えてみた。 class Object def make_instance_variables (_binding) eval(&lt;&lt;'EOC', _binding) local_variables.each do |lv_name| instance_variable_set(&quot;@#{lv_name}&quot;, eval(lv_name)) end EOC end end # 問題ないパターン class Neko def initialize (hige, tume, sippo = 1) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanekos.hatenablog.com%2Fentry%2F20071026%2F1193377126&quot; title=&quot;initialize での自動的なインスタンス変数のセット - 地獄のネコブログ&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>2007-10-26 14:38:46</published>
  <title>initialize での自動的なインスタンス変数のセット</title>
  <type>rich</type>
  <url>https://anekos.hatenablog.com/entry/20071026/1193377126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
