{"width":"100%","height":"190","categories":["rails/ruby"],"provider_url":"https://hatena.blog","version":"1.0","description":"nil? empty? \u306fruby\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u304c\u3001 present? blank? \u306frails\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002 \u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 $ rails console Loading development environment (Rails 4.2.2) irb(main):001:0> a = nil => nil irb(main):002:0> b = \" \" => \" \" irb(main):003:0> c = \" \" => \" \" irb(main):004:0> d = \"h\" => \"h\" irb(main):005:0> a.present? => f\u2026","author_name":"pebble8888","blog_url":"https://pebble8888.hatenablog.com/","blog_title":"Pebble Coding","image_url":null,"author_url":"https://blog.hatena.ne.jp/pebble8888/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2016%2F05%2F29%2F203452\" title=\"rails \u6587\u5b57\u5217\u306b\u5bfe\u3059\u308bpresent? - Pebble Coding\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://pebble8888.hatenablog.com/entry/2016/05/29/203452","type":"rich","published":"2016-05-29 20:34:52","title":"rails \u6587\u5b57\u5217\u306b\u5bfe\u3059\u308bpresent?"}