<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>StringのVersion情報 &quot;2.1.1&quot; を &quot;2.2.0&quot; などと比較したい Gem::Version を使うことで比較できる p &quot;1.9&quot; &lt; &quot;1.10&quot; # =&gt; false p Gem::Version.new(&quot;1.9&quot;) &lt; Gem::Version.new(&quot;1.10&quot;) # =&gt; true 文字列にも対応。便利。 &quot;1.1.beta9&quot; と &quot;1.1.beta10&quot; では、&quot;beta9&quot; と &quot;beta10&quot; の部分だけが違いますが、アルファベット部分と数字部分が分割され、数字部分は整数の大小比較になるため、後者のほうが大きいと判定されます。 docs.ruby-l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2020%2F07%2F09%2F122353&quot; title=&quot;Railsで文字列のバージョンを比較する - ノンカフェインであなたにやさしい&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>2020-07-09 12:23:53</published>
  <title>Railsで文字列のバージョンを比較する</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2020/07/09/122353</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
