Feature Request #22

Add Object#blank?

Added by Daniel Berger 157 days ago.

Status:New Start:02/22/2010
Priority:Normal Due date:03/31/2011
Assigned to:Daniel Berger % Done:

0%

Category:New Core Feature Spent time: -
Target version:1.0 Estimated time:8.00 hours

Description

Ruby on Rails has added the .blank? method to several core classes. I've found that this method is handy outside of Rails as well.

An object is blank if it is nil. It is also blank if it responds to .empty? and that method returns true.

Also available in: Atom PDF