Sha256: b588ced9342d2433b6ef43a7782c0d661901471d7357d3e3fb3341cdf9d56838

Contents?: true

Size: 145 Bytes

Versions: 2

Compression:

Stored size: 145 Bytes

Contents

# frozen_string_literal: true

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

  def present?
    !blank?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backup_repos-0.5.0 lib/core_ext/object.rb
backup_repos-0.4.0 lib/core_ext/object.rb