<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmtms</author_name>
  <author_url>https://blog.hatena.ne.jp/tmtms/</author_url>
  <blog_title>tmtms のメモ</blog_title>
  <blog_url>https://blog.tmtms.net/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>前回の続き。 デフォルト値 :default でオプションを指定しない時のデフォルト値を指定できます。 o = OptConfig.new o.option &quot;port&quot;, :format=&gt;1..65535, :default=&gt;25 o.parse [&quot;--port=123&quot;] o[&quot;port&quot;] # =&gt; 123 o.parse [] o[&quot;port&quot;] # =&gt; 25 アンダースコアをハイフンとみなす :underscore_is_hyphen を指定すると、ハイフンの代わりにアンダースコアを使うことができます。 o = OptConfig.new o.option &quot;long-opt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F20090117%2F1232179111&quot; title=&quot; OptConfig その２ - tmtms のメモ&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-01-17 16:58:31</published>
  <title> OptConfig その２</title>
  <type>rich</type>
  <url>https://blog.tmtms.net/entry/20090117/1232179111</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
