<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>概要 Rubyの代入について 詳細 変数の代入 variable = 任意の値 属性の代入 instance.attribute = 任意の値 多重代入 Rubyは複数の変数に一気に値を代入することが可能です。 a,b = 1,2 代入の入れ子 多重代入を行う際に、括弧を付けることができます。 入れ子の際の動作についてはサンプルコードと出力を参考にしてください。 サンプルコード # encoding: Windows-31J require &quot;pp&quot; a = 1 # 基本的な代入 a = b = 1 # 代入はつなげることが可能 p &quot;a=#{a}&quot; p &quot;b=#{b}&quot; class Hoge…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20130106%2F1357483218&quot; title=&quot;Ruby | 代入 - Tbpgr 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>2013-01-06 23:40:18</published>
  <title>Ruby | 代入</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20130106/1357483218</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
