Sha256: 50601c425803c78e749a91bb095644c47f5193711131bb6d391ec6aa397275ae

Contents?: true

Size: 204 Bytes

Versions: 8

Compression:

Stored size: 204 Bytes

Contents

class Object

  unless respond_to?(:blank?)

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

  end

  unless respond_to?(:present?)

    def present?
      !blank?
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mms2r-3.9.2 lib/ext/object.rb
mms2r-3.9.1 lib/ext/object.rb
mms2r-3.9.0 lib/ext/object.rb
mms2r-3.8.2 lib/ext/object.rb
mms2r-3.8.1 lib/ext/object.rb
mms2r-3.8.0 lib/ext/object.rb
mms2r-3.7.1 lib/ext/object.rb
mms2r-3.7.0 lib/ext/object.rb