<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-sato_at_oiax</author_name>
  <author_url>https://blog.hatena.ne.jp/k-sato_at_oiax/</author_url>
  <blog_title>Rubyリファレンス日記</blog_title>
  <blog_url>https://k-sato-at-oiax.hatenadiary.org/</blog_url>
  <categories>
    <anon>メモ</anon>
  </categories>
  <description>Rubyの定数（大文字で始まる変数）は再代入が可能です。警告は出ますが変更できます。 FOO = &quot;hello&quot; FOO = &quot;world&quot; p FOO結果： temp.rb:2: warning: already initialized constant FOO &quot;world&quot;RubyにはC/C++のような定数は存在せず、大文字で始まる変数は「クラスに属し、Foo::Barのように外から値を取り出せる変数」であると思われます（トップレベルの定数はObjectに属します）。「大文字で始まる変数は定数」というより、「大文字で始まる変数はおもに定数として使われている」が正確なところでしょうか。大文…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-sato-at-oiax.hatenadiary.org%2Fentry%2F20100615%2F1276605558&quot; title=&quot; Rubyの定数は定数ではない - Rubyリファレンス日記&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>2010-06-15 21:39:18</published>
  <title> Rubyの定数は定数ではない</title>
  <type>rich</type>
  <url>https://k-sato-at-oiax.hatenadiary.org/entry/20100615/1276605558</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
