Sha256: f220bf18040f63c823f5d7a680b468a701dda5c2b7e5431235556e1e469da0d3

Contents?: true

Size: 306 Bytes

Versions: 12

Compression:

Stored size: 306 Bytes

Contents

module Savon
  module CoreExt
    module Object

      # Returns +true+ if the Object is nil, false or empty. Implementation from ActiveSupport.
      def blank?
        respond_to?(:empty?) ? empty? : !self
      end unless defined? blank?

    end
  end
end

Object.send :include, Savon::CoreExt::Object

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/savon-0.9.2/lib/savon/core_ext/object.rb
savon-0.9.2 lib/savon/core_ext/object.rb
s-savon-0.8.6 lib/savon/core_ext/object.rb
savon-0.9.1 lib/savon/core_ext/object.rb
savon-0.9.0 lib/savon/core_ext/object.rb
savon-0.8.6 lib/savon/core_ext/object.rb
savon-0.8.5 lib/savon/core_ext/object.rb
savon-0.8.4 lib/savon/core_ext/object.rb
savon-0.8.3 lib/savon/core_ext/object.rb
savon-0.8.2 lib/savon/core_ext/object.rb
savon-0.8.1 lib/savon/core_ext/object.rb
savon-0.8.0 lib/savon/core_ext/object.rb