Sha256: 2b470528059a262f8b9d5c9d2f07f6ef4f677ceeac0a5abf3fffdc2c2d4a009f
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
# The methods here are provided to speed up function blank? in class Object class NilClass #:nodoc: def blank? true end 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 #:nodoc: def blank? empty? || strip.empty? end end class Numeric #:nodoc: def blank? false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activesupport-1.2.4 | lib/active_support/core_ext/blank.rb |
activesupport-1.2.5 | lib/active_support/core_ext/blank.rb |
activesupport-1.2.3 | lib/active_support/core_ext/blank.rb |