Sha256: f0aa62a821dc1c2ed08330a511bd2fba6246648244db98ef68c7c9a108f14490

Contents?: true

Size: 194 Bytes

Versions: 11

Compression:

Stored size: 194 Bytes

Contents

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

  def present?
    !blank?
  end
end

class NilClass
  def blank?
    true
  end

  def present?
    false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
openstax_aws-2.1.0 lib/openstax/aws/extensions.rb
openstax_aws-2.0.1 lib/openstax/aws/extensions.rb
openstax_aws-2.0.0 lib/openstax/aws/extensions.rb
openstax_aws-1.6.1 lib/openstax/aws/extensions.rb
openstax_aws-1.6.0 lib/openstax/aws/extensions.rb
openstax_aws-1.5.0 lib/openstax/aws/extensions.rb
openstax_aws-1.4.0 lib/openstax/aws/extensions.rb
openstax_aws-1.3.0 lib/openstax/aws/extensions.rb
openstax_aws-1.2.0 lib/openstax/aws/extensions.rb
openstax_aws-1.1.0 lib/openstax/aws/extensions.rb
openstax_aws-1.0.0 lib/openstax/aws/extensions.rb