Sha256: d7303131ffb668dc86d4cbe7b0635c61ec6fe3cb0d81c12bd512e2adaa07ab4a

Contents?: true

Size: 115 Bytes

Versions: 215

Compression:

Stored size: 115 Bytes

Contents

class Object
  def blank?
    respond_to?(:empty?) ? empty? : !self
  end

  def present?
    not blank?
  end
end

Version data entries

215 entries across 215 versions & 1 rubygems

Version Path
shelly-0.0.21.pre lib/core_ext/object.rb
shelly-0.0.20.pre lib/core_ext/object.rb
shelly-0.0.19 lib/core_ext/object.rb
shelly-0.0.18 lib/core_ext/object.rb
shelly-0.0.17 lib/core_ext/object.rb
shelly-0.0.16 lib/core_ext/object.rb
shelly-0.0.15 lib/core_ext/object.rb
shelly-0.0.14 lib/core_ext/object.rb
shelly-0.0.13 lib/core_ext/object.rb
shelly-0.0.12 lib/core_ext/object.rb
shelly-0.0.11 lib/core_ext/object.rb
shelly-0.0.10 lib/core_ext/object.rb
shelly-0.0.9 lib/core_ext/object.rb
shelly-0.0.8 lib/core_ext/object.rb
shelly-0.0.7 lib/core_ext/object.rb