module RestClient::Payload
def _has_file?(obj)
def _has_file?(obj) case obj when Hash, ParamsArray obj.any? {|_, v| _has_file?(v) } when Array obj.any? {|v| _has_file?(v) } else obj.respond_to?(:path) && obj.respond_to?(:read) end end
def _has_file?(obj) case obj when Hash, ParamsArray obj.any? {|_, v| _has_file?(v) } when Array obj.any? {|v| _has_file?(v) } else obj.respond_to?(:path) && obj.respond_to?(:read) end end