Sha256: 6b6f6e244065a085cf326fbd9e7f2b71a7333e6b131247cbd88a3463c9d5e1fb

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

class NilClass #:nodoc:
  def blank?
    true
  end
  alias_method :empty?, :blank?
end

class FalseClass #:nodoc:
  def blank?
    true
  end
end

class TrueClass #:nodoc:
  def blank?
    false
  end
end

class Array #:nodoc:
  alias_method :blank?, :empty?
end

class Hash #:nodoc:
  alias_method :blank?, :empty?
end

class String  
  def blank?
    self !~ /\S/
  end unless "".respond_to? :blank
end  


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sugar-high-0.6.3 lib/sugar-high/blank.rb