lib/axiom/relation/operation/binary.rb in axiom-0.1.1 vs lib/axiom/relation/operation/binary.rb in axiom-0.2.0
- old
+ new
@@ -45,29 +45,29 @@
#
# @return [Binary]
#
# @api public
def new(left, right)
- assert_ordered_match(left, right)
+ assert_sorted_match(left, right)
super
end
private
- # Assert that ordered and unordered relations are not mixed
+ # Assert that sorted and unsorted relations are not mixed
#
# @param [Relation] left
# @param [Relation] right
#
# @return [undefined]
#
# @raise [RelationMismatchError]
- # raised if one relation is ordered and the other is not
+ # raised if one relation is sorted and the other is not
#
# @api private
- def assert_ordered_match(left, right)
+ def assert_sorted_match(left, right)
if left.directions.empty? != right.directions.empty?
- raise RelationMismatchError, 'both relations must be ordered or neither may be ordered'
+ fail RelationMismatchError, 'both relations must be sorted or neither may be sorted'
end
end
end # module ClassMethods
end # module Binary