<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Pocke</author_name>
  <author_url>https://blog.hatena.ne.jp/Pocke/</author_url>
  <blog_title>pockestrap</blog_title>
  <blog_url>https://pocke.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Ruby</anon>
  </categories>
  <description>irbで3桁区切りで _ を入れて数値を表示するようにしてみた pic.twitter.com/CrPxSIiaqE— Pocke(ぽっけ) (@p_ck_) 2021年4月9日 twitter.com デバッグなどをしていて、数値が区切り無しで出力されると読みづらいため、_をはさんでみた。 Rubyでは数値リテラルで桁区切りに_を使えるので、これも構文上はvalid。 コード IRBで使いたかったので、~/.irbrcに次のコードを書いた。IRB関係なく使いたい場合、class Integer ... endの中だけを使えば良い。 # .irbrc IRB.conf[:INSPECT_MOD…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpocke.hatenablog.com%2Fentry%2F2021%2F04%2F09%2F184453&quot; title=&quot;Rubyで数値を 123_456_789 のように表示する - pockestrap&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>2021-04-09 18:44:53</published>
  <title>Rubyで数値を 123_456_789 のように表示する</title>
  <type>rich</type>
  <url>https://pocke.hatenablog.com/entry/2021/04/09/184453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
