<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BigFatCat</author_name>
  <author_url>https://blog.hatena.ne.jp/BigFatCat/</author_url>
  <blog_title>BigFatCatのブログ</blog_title>
  <blog_url>https://bigfatcat.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>勉強</anon>
  </categories>
  <description>メモ p76 旧バージョンの Ruby では、属性設定メソッド（セッター？）によって返された値が代入の結果になりました。Ruby1.8 では、常に、引数の値が代入の値になります。つまり、属性設定メソッドの戻り値は破棄されます。 ということは、以下のコード中の return の値は破棄されてしまうってことだな。 class Test attr_reader :val def val=(val) @val = val return 99 end end t = Test.new # Ruby1.8 以前では、属性設定メソッドの戻り値が破棄されずに、a が 99 になる a = t.val = 2 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbigfatcat.hateblo.jp%2Fentry%2F20070918%2F1190122167&quot; title=&quot; ピッケル本を読む（６）第7章 式 - BigFatCatのブログ&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-09-18 22:29:27</published>
  <title> ピッケル本を読む（６）第7章 式</title>
  <type>rich</type>
  <url>https://bigfatcat.hateblo.jp/entry/20070918/1190122167</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
