Sha256: 22c9cd8ed7d45639ca5c1b28e37d478a08d70c88db262757432d2cda40cfe96a

Contents?: true

Size: 315 Bytes

Versions: 11

Compression:

Stored size: 315 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 method_defined?(:blank?)

    end
  end
end

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

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/savon-0.9.5/lib/savon/core_ext/object.rb
savon-0.9.9 lib/savon/core_ext/object.rb
savon-0.9.8 lib/savon/core_ext/object.rb
they-savon-0.9.7.1 lib/savon/core_ext/object.rb
regenersis-savon-1.0.0 lib/savon/core_ext/object.rb
they-savon-0.9.7 lib/savon/core_ext/object.rb
savon-0.9.7 lib/savon/core_ext/object.rb
savon-0.9.6 lib/savon/core_ext/object.rb
savon-0.9.5 lib/savon/core_ext/object.rb
savon-0.9.4 lib/savon/core_ext/object.rb
savon-0.9.3 lib/savon/core_ext/object.rb