<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Sixeight</author_name>
  <author_url>https://blog.hatena.ne.jp/Sixeight/</author_url>
  <blog_title>ちなみに</blog_title>
  <blog_url>https://blog.nishimu.land/</blog_url>
  <categories>
    <anon>RubyAdventJP</anon>
  </categories>
  <description>(この記事はRuby Advent Calendar jp: 2009の9日目の記事です．前の方はrepeatedlyさんで，後の方はno6vさんです．) 今回は原点に立ち帰り、Rubyでもっとも使用するクラスの1つであるStringクラスに関するTIPSをいくつか公開したいと思います。 String#% による文章の整形 特定のフォーマットにしたがって文章を整形する際、Rubyでは Kernel.#sprintf が使用できます。しかし7文字ものメソッド名をタイプするなんて正常なプログラマには耐えられるものではありません。そこで String#% を使うのが一般的となっています。 lang …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F20091209%2F1260350926&quot; title=&quot; Stringクラスに関するいくつかのTIPS - ちなみに&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>2009-12-09 18:28:46</published>
  <title> Stringクラスに関するいくつかのTIPS</title>
  <type>rich</type>
  <url>https://blog.nishimu.land/entry/20091209/1260350926</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
