<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>filename の一番後ろのスラッシュより前を文字列として返します。スラッシュを含まないファイル名に対しては &quot;.&quot;(カレントディレクトリ)を返します。 File.dirname(c:/app/controller/hoge.rb) #=&gt;&quot;c:/app/controller&quot;ファイル名を取得する際に最後の/以降を返す File.basename(&quot;c:/app/controller/hoge.rb&quot;) #=&gt;&quot;hoge.rb&quot;ファイル名の拡張子部分を取得。拡張子が無い場合は空白文字 File.extname(&quot;c:/app/controller/hoge.rb&quot;) #=&gt;&quot;.rb&quot;ネタ元 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F20091111%2Fp7&quot; title=&quot;ファイル名からディレクトリパス（フォルダパス）やファイル名（ベース名）、拡張子を取り出す - shikaku&amp;#39;s blog&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-11-11 00:00:00</published>
  <title>ファイル名からディレクトリパス（フォルダパス）やファイル名（ベース名）、拡張子を取り出す</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/20091111/p7</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
