compass/lib/compass/core_ext.rb
2009-02-08 03:46:46 -08:00

13 lines
140 B
Ruby

class String
# see if string has any content
def blank?; self.length.zero?; end
end
class NilClass
def blank?
true
end
end