<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuki-eda0629</author_name>
  <author_url>https://blog.hatena.ne.jp/yuki-eda0629/</author_url>
  <blog_title>edy hub</blog_title>
  <blog_url>https://www.edyhub.com/</blog_url>
  <categories>
  </categories>
  <description>これは何か？ Rubyの文法を復習し直す場 RubyとRailsを学習する方に向けた記事 インスタンス変数 インスタンス変数とは、オブジェクトが抱えている変数のこと。 例えば下記のようなrubyファイルにUserクラスがあったとする。 class User end ここで、rubyのセッターとゲッターという概念が登場する。 セッター：インスタンス変数を代入するためのメソッド ゲッター：インスタンス変数の内容を参照するためのメソッド class User def name=(name) @name = name end def name @name end end irbを起動して動作を確認して…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.edyhub.com%2Fentry%2F2019%2F03%2F08%2F011559&quot; title=&quot;Rubyの基礎を改めて学習し直してみた（インスタンス） - edy hub&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>2019-03-08 01:15:59</published>
  <title>Rubyの基礎を改めて学習し直してみた（インスタンス）</title>
  <type>rich</type>
  <url>https://www.edyhub.com/entry/2019/03/08/011559</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
