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.5.7 lib/core_ext/object.rb
shelly-0.5.6 lib/core_ext/object.rb
shelly-0.5.5 lib/core_ext/object.rb
shelly-0.5.4 lib/core_ext/object.rb
shelly-0.5.3 lib/core_ext/object.rb
shelly-0.5.2 lib/core_ext/object.rb
shelly-0.5.1 lib/core_ext/object.rb
shelly-0.5.0 lib/core_ext/object.rb
shelly-0.4.42 lib/core_ext/object.rb
shelly-0.4.41 lib/core_ext/object.rb
shelly-0.4.40 lib/core_ext/object.rb
shelly-0.4.39 lib/core_ext/object.rb
shelly-0.4.38 lib/core_ext/object.rb
shelly-0.4.37 lib/core_ext/object.rb
shelly-0.4.36 lib/core_ext/object.rb
shelly-0.4.35 lib/core_ext/object.rb
shelly-0.4.34 lib/core_ext/object.rb
shelly-0.4.33 lib/core_ext/object.rb
shelly-0.4.32 lib/core_ext/object.rb
shelly-0.4.31 lib/core_ext/object.rb