lib/perfect_shape/line.rb in perfect-shape-0.5.4 vs lib/perfect_shape/line.rb in perfect-shape-0.5.5

- old
+ new

@@ -207,11 +207,11 @@ # # @param x The X coordinate of the point to test. # @param y The Y coordinate of the point to test. # @param distance_tolerance The distance from line to tolerate (0 by default) # - # @return {@code true} if the point lies within the bound of - # the line, {@code false} if the point lies outside of the + # @return true if the point lies within the bound of + # the line, false if the point lies outside of the # line's bounds. def contain?(x_or_point, y = nil, outline: true, distance_tolerance: 0) x, y = Point.normalize_point(x_or_point, y) return unless x && y distance_tolerance = BigDecimal(distance_tolerance.to_s)