<?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>RubyのCSVライブラリは何故か空フィールドについてnilを返します(「&quot;」で括られていると空文字列を返します)。 require 'csv' CSV.parse('a,,&quot;&quot;,&quot;1,2&quot;') do |row| p row end #=&gt; [&quot;a&quot;, nil, &quot;&quot;, &quot;1,2&quot;] なのでそれを考慮していないと NoMethodError(いわゆるぬるぽ)が起きたりして酷い目にあったりします (&gt;&lt;) require 'csv' CSV.parse('a,,&quot;&quot;,&quot;1,2&quot;') do |row| row.each do |col| p col.length end end #=&gt; 1 #=&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F2017%2F08%2F22%2Frightcsv&quot; title=&quot;Rubyのnilを返さないCSVライブラリ - 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>2017-08-22 19:29:43</published>
  <title>Rubyのnilを返さないCSVライブラリ</title>
  <type>rich</type>
  <url>https://blog.tmtms.net/entry/2017/08/22/rightcsv</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
