Sha256: 515fd361863e45aa3143b69d008c9b853605fb2688b48941f6b2f9f0c3054e01
Contents?: true
Size: 272 Bytes
Versions: 5
Compression:
Stored size: 272 Bytes
Contents
=begin Add +blank?+, +present?+ and +presence+ methods to +Object+ class if activesupport cannot be loaded. =end class Object def blank? respond_to?(:empty?) ? !!empty? : !self end def present? !blank? end def presence self if present? end end
Version data entries
5 entries across 5 versions & 1 rubygems