In this article we present a new approach to quadrature methods where any quadrature formula is generated by a discontinuous function whose jumps are quadrature weights. The quadrature error is estimated for Lipschitzcontinuous functions with the constant which can not be replaced by a smaller one.