class Object
Public Instance Methods
blank?()
click to toggle source
# File lib/podcastinator/extensions.rb, line 7 def blank? return true if self == nil return true if kind_of?(String) && self =~ /\A\s*\z/ return true if respond_to?(:length) && length == 0 return true if to_s.length == 0 return false end
present?()
click to toggle source
# File lib/podcastinator/extensions.rb, line 3 def present? !blank? end