Sha256: 380ca0e3d19ba2d6fb999d208d47f8f165be6ff1a6046909c25561fb88495d2c

Contents?: true

Size: 144 Bytes

Versions: 5

Compression:

Stored size: 144 Bytes

Contents

# frozen_string_literal: true

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

  def present?
    !blank?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bs2_api-0.3.2 lib/bs2_api/initializers/object.rb
bs2_api-0.3.1 lib/bs2_api/initializers/object.rb
bs2_api-0.3.0 lib/bs2_api/initializers/object.rb
bs2_api-0.2.1 lib/bs2_api/initializers/object.rb
bs2_api-0.2.0 lib/bs2_api/initializers/object.rb