<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanaken0515</author_name>
  <author_url>https://blog.hatena.ne.jp/tanaken0515/</author_url>
  <blog_title>tanaken’s blog</blog_title>
  <blog_url>https://tanaken0515.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>備忘録</anon>
  </categories>
  <description>Rubyのsetterとは オブジェクトのインスタンス変数に値を代入するためのメソッド。インスタンス変数名から「@」を削除し、末尾に「=」を付けたメソッド名とする習慣がある。 Ruby用語集 (Ruby 3.2 リファレンスマニュアル) より引用 例えばこういうクラスがあった場合、 class Foo def x=(val) @x = val end end こういうことができますよね。 irb(main):001:1* class Foo irb(main):002:2* def x=(val) irb(main):003:2* @x = val irb(main):004:1* end i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanaken0515.hatenablog.com%2Fentry%2F2023%2F02%2F28%2F233219&quot; title=&quot;Rubyのsetterの返り値 - tanaken’s blog&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>2023-02-28 23:32:19</published>
  <title>Rubyのsetterの返り値</title>
  <type>rich</type>
  <url>https://tanaken0515.hatenablog.com/entry/2023/02/28/233219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
