lib/axiom/algebra/summarization.rb in axiom-0.1.1 vs lib/axiom/algebra/summarization.rb in axiom-0.2.0

- old
+ new

@@ -53,11 +53,11 @@ # raised if the summarize_per header is not a subset of the operand header # # @api private def self.assert_subset_headers(operand, summarize_per) unless summarize_per.header.to_set.proper_subset?(operand.header.to_set) - raise InvalidHeaderError, 'the summarize_per header must be a proper subset of the operand header' + fail InvalidHeaderError, 'the summarize_per header must be a proper subset of the operand header' end end private_class_method :assert_subset_headers @@ -110,11 +110,11 @@ # @raise [ImmutableRelationError] # raised when inserting into the summarization # # @api public def insert(*) - raise ImmutableRelationError, 'inserting into a summarization is impossible' + fail ImmutableRelationError, 'inserting into a summarization is impossible' end # Raise an exception when deleting from a Summarization # # @example @@ -125,10 +125,10 @@ # @raise [ImmutableRelationError] # raised when deleting from the summarization # # @api public def delete(*) - raise ImmutableRelationError, 'deleting from a summarization is impossible' + fail ImmutableRelationError, 'deleting from a summarization is impossible' end private # Return the current summaries