<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>rails/ruby</anon>
  </categories>
  <description>nil? empty? はrubyのメソッドですが、 present? blank? はrailsのメソッドです。 文字列に対しては以下のようになります。 $ rails console Loading development environment (Rails 4.2.2) irb(main):001:0&gt; a = nil =&gt; nil irb(main):002:0&gt; b = &quot; &quot; =&gt; &quot; &quot; irb(main):003:0&gt; c = &quot; &quot; =&gt; &quot; &quot; irb(main):004:0&gt; d = &quot;h&quot; =&gt; &quot;h&quot; irb(main):005:0&gt; a.present? =&gt; f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2016%2F05%2F29%2F203452&quot; title=&quot;rails 文字列に対するpresent? - Pebble Coding&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>2016-05-29 20:34:52</published>
  <title>rails 文字列に対するpresent?</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2016/05/29/203452</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
