Sha256: 33c8454dd325e4cbc6bc9184bdd08f140d8a7149cb426255f3e1e81ff6730db5

Contents?: true

Size: 112 Bytes

Versions: 52

Compression:

Stored size: 112 Bytes

Contents

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

  def present?
    !blank?
  end
end

Version data entries

52 entries across 52 versions & 5 rubygems

Version Path
review-5.10.0 lib/review/extentions/object.rb
review-5.9.0 lib/review/extentions/object.rb
review-5.8.0 lib/review/extentions/object.rb
review-5.7.0 lib/review/extentions/object.rb
review-5.6.0 lib/review/extentions/object.rb
review-5.5.0 lib/review/extentions/object.rb
review-5.4.0 lib/review/extentions/object.rb
review-5.3.0 lib/review/extentions/object.rb
review-5.2.0 lib/review/extentions/object.rb
review-5.1.1 lib/review/extentions/object.rb
review-5.1.0 lib/review/extentions/object.rb
review-5.0.0 lib/review/extentions/object.rb
review-4.2.0 lib/review/extentions/object.rb
review-4.1.0 lib/review/extentions/object.rb
review-4.0.0 lib/review/extentions/object.rb
review-3.2.0 lib/review/extentions/object.rb
review-3.1.0 lib/review/extentions/object.rb
review-3.0.0 lib/review/extentions/object.rb
review-3.0.0.rc1 lib/review/extentions/object.rb
review-3.0.0.preview4 lib/review/extentions/object.rb