Sha256: 1c31fd207771183e8bab68ac3fe4e4cae7077d5e4f6f3cd728ccdc11b24c0662
Contents?: true
Size: 448 Bytes
Versions: 7
Compression:
Stored size: 448 Bytes
Contents
class 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? # Returns the Object as a SOAP request compliant key. def to_soap_key to_s end # Returns the Object as a SOAP request compliant value. def to_soap_value return to_s unless respond_to? :to_datetime to_datetime.to_soap_value end end
Version data entries
7 entries across 7 versions & 3 rubygems