lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.14.0 vs lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.14.1
- old
+ new
@@ -83,27 +83,19 @@
end
end
def >=(compare)
if @compare_flag
- if @relationship && Constraint.relationship_lookup(@relationship) != NSLayoutRelationGreaterThanOrEqual
- raise InvalidRelationshipError.new("You cannot use `.is >=` on a constraint that is already defined as #{@relationship}")
- end
-
gte(compare)
self
else
super
end
end
def <=(compare)
if @compare_flag
- if @relationship && Constraint.relationship_lookup(@relationship) != NSLayoutRelationLessThanOrEqual
- raise InvalidRelationshipError.new("You cannot use `.is <=` on a constraint that is already defined as #{@relationship}")
- end
-
lte(compare)
self
else
super