Sha256: 354493e25f017bca2db800f4341158189f4b604d6e41e82f5a8b1d7d3487404b

Contents?: true

Size: 114 Bytes

Versions: 18

Compression:

Stored size: 114 Bytes

Contents

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

  def present?
    !blank?
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
shipay-0.1.5 lib/shipay/core_ext.rb
pagarme-2.4.0 lib/pagarme/core_ext.rb
pagarme-2.3.0 lib/pagarme/core_ext.rb
pagarme-2.2.3 lib/pagarme/core_ext.rb
pagarme-2.2.2 lib/pagarme/core_ext.rb
pagarme-2.2.1 lib/pagarme/core_ext.rb
pagarme-2.2.0 lib/pagarme/core_ext.rb
backup_repos-0.3.0 lib/core_ext/object.rb
pagarme-2.1.4 lib/pagarme/core_ext.rb
backup_repos-0.2.1 lib/core_ext/object.rb
backup_repos-0.2.0 lib/core_ext/object.rb
pagarme-2.1.3 lib/pagarme/core_ext.rb
pagarme-2.1.2 lib/pagarme/core_ext.rb
pagarme-2.1.1 lib/pagarme/core_ext.rb
pagarme-2.1.0 lib/pagarme/core_ext.rb
inactive_support-1.1.0 lib/inactive_support/object/blank.rb
inactive_support-1.0.0 lib/inactive_support/object/blank.rb
inactive_support-0.1.0 lib/inactive_support/object/blank.rb