<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>N文字目だけ文字を変更する場合には、String#[]とObject#instance_evalが使えます。例えば行頭だけ変えたい場合はこうします。 &quot;hoge&quot;.instance_eval {|i| p i[0].upcase + i[1..-1]} #=&gt;&quot;Hoge&quot; みんな大好きactive_supportを使うと、もう少し綺麗にかけます require &quot;active_support/core_ext&quot; &quot;hoge&quot;.instance_eval {|i| i.first.upcase + i.from(1) } #=&gt;&quot;Hoge&quot; 単に先頭だけなら require &quot;active_su…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2014%2F10%2F11%2F234736&quot; title=&quot;N文字目だけ破壊的に大文字へ変更する - Bye Bye Moore&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>2014-10-11 23:47:36</published>
  <title>N文字目だけ破壊的に大文字へ変更する</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2014/10/11/234736</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
