<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>upcase：大文字変換 upcaseは全ての文字を大文字に置き換えた文字列を返す。 upcase!は破壊的に置き換える。 str = &quot;Hello ruby&quot; # upcaseは元の文字列はそのまま p str.upcase #=&gt; &quot;HELLO RUBY&quot; p str #=&gt; &quot;Hello ruby&quot; # upcase!は元の文字列を更新(破壊的) p str.upcase! #=&gt; &quot;HELLO RUBY&quot; p str #=&gt; &quot;HELLO RUBY&quot; downcase：小文字変換 downcaseは全ての文字を小文字に置き換えた文字列を返す。 downcase!は破壊的に置き換える。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fruby%2Fupcase-downcase&quot; title=&quot;【Ruby】文字列の大文字・小文字変換まとめ（upcase・downcase・capitalize・swapcase） - ランドML&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>2026-06-19 07:35:24</published>
  <title>【Ruby】文字列の大文字・小文字変換まとめ（upcase・downcase・capitalize・swapcase）</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/ruby/upcase-downcase</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
