<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nandakagoodvibes</author_name>
  <author_url>https://blog.hatena.ne.jp/nandakagoodvibes/</author_url>
  <blog_title>なんだかGoodVibes</blog_title>
  <blog_url>https://nandakagoodvibes.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>こんにちは。 本日はRubyメモです。 ローカル変数の宣言方法 グローバル変数の宣言方法 クラス変数の宣言方法 インスタンス変数の宣言方法 定数の宣言方法 ローカル変数の宣言方法 ローカル変数とは、定義された有効範囲内で使用できる変数のことです。 ローカル変数は「変数名 = 値」で宣言します。 ローカル変数は小文字もしくはアンダーバー(_)から始まるようにします。 var_x = 10 グローバル変数の宣言方法 グローバル変数とは、一度宣言をしたら プログラム全体で使用ができる変数のことです。 グローバル変数は「$変数名 = 値」で宣言します。 $my_name = &quot;Bob&quot; クラス変数の宣…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnandakagoodvibes.hatenablog.com%2Fentry%2F2026%2F02%2F08%2F160718&quot; title=&quot;【Ruby】[超入門] 変数、定数の宣言 - なんだかGoodVibes&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>2026-02-08 16:07:18</published>
  <title>【Ruby】[超入門] 変数、定数の宣言</title>
  <type>rich</type>
  <url>https://nandakagoodvibes.hatenablog.com/entry/2026/02/08/160718</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
