<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>innocent-zero</author_name>
  <author_url>https://blog.hatena.ne.jp/innocent-zero/</author_url>
  <blog_title>ブログ</blog_title>
  <blog_url>https://gouf.hatenablog.com/</blog_url>
  <categories>
    <anon>way of thinking</anon>
    <anon>Ruby</anon>
  </categories>
  <description>方法 まとめ Links 方法 Module#private_constant を使う class MyClass MY_CONSTANT = 'Value' MY_CONSTANT_B = 'Value B' private_constant :MY_CONSTANT, :MY_CONSTANT_B end まとめ Private constants in Ruby というページを見た いろんな状況の中から、たとえばマジックナンバー撲滅のために定数に書き出すという場面があるとおもう でもそれがクラスやモジュール、その内部だけで扱われるなら、外部から見えなくする...コードとして明示的に書くこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgouf.hatenablog.com%2Fentry%2F2018%2F02%2F17%2F052338&quot; title=&quot;定数を外部からアクセス不能にする(参考リンク) - ブログ&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>2018-02-17 05:23:38</published>
  <title>定数を外部からアクセス不能にする(参考リンク)</title>
  <type>rich</type>
  <url>https://gouf.hatenablog.com/entry/2018/02/17/052338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
