<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-shin</author_name>
  <author_url>https://blog.hatena.ne.jp/s-shin/</author_url>
  <blog_title>$ cat /var/log/shin</blog_title>
  <blog_url>https://shin.hateblo.jp/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Ruby</anon>
  </categories>
  <description>気がついたら、年が明けてました。あけましておめでとうございます。早速本題に入ります。JavaScriptはプライベートなど無くフリーダムなのでthis[key] = valueの形でプロパティを書き換えられますが、Rubyではself[key] = valueとはできません。はてと思い、Rubyマニュアルを眺めていたら、それっぽいObject#instance_variable_setというメソッドがありました。確認のため、簡単なサンプルを作ってみました。 class Hoge def initialize(copy=nil) @foo = 1 @bar = 2 if copy copy.ea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshin.hateblo.jp%2Fentry%2F2013%2F01%2F02%2F153540&quot; title=&quot;Rubyで変数名を指定してインスタンス変数を書き換える方法 - $ cat /var/log/shin&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>2013-01-02 15:35:40</published>
  <title>Rubyで変数名を指定してインスタンス変数を書き換える方法</title>
  <type>rich</type>
  <url>https://shin.hateblo.jp/entry/2013/01/02/153540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
