<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nkgt_chkonk</author_name>
  <author_url>https://blog.hatena.ne.jp/nkgt_chkonk/</author_url>
  <blog_title>猫型の蓄音機は 1 分間に 45 回にゃあと鳴く</blog_title>
  <blog_url>https://nekogata.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>環境というのはスコープと言い換えてもいいけど、ようするに「今実行している行から何が見えて何が触れるのか」という話。一度自分の頭の整理のためにきちんとまとめておきたいと思っていたので昼休みを利用してまとめる。 基本 環境変数 ENVっていうハッシュのこと、これはプロセスにとってグローバルな環境である。つまり、どこからでも参照することが可能。 グローバル変数および定数 これもプロセスにとってグローバルな環境である。 self どのようなインスタンス変数が見えるか、どのようなprivateメソッドが見えるかというのは言い換えると「self が何を指しているか」ということである。 selfが何を指して…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekogata.hatenablog.com%2Fentry%2F2013%2F11%2F18%2F130229&quot; title=&quot;Rubyにおける「環境」の話 - 猫型の蓄音機は 1 分間に 45 回にゃあと鳴く&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-11-18 13:02:29</published>
  <title>Rubyにおける「環境」の話</title>
  <type>rich</type>
  <url>https://nekogata.hatenablog.com/entry/2013/11/18/130229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
