lib/vedeu/geometry/coordinate.rb in vedeu-0.6.1 vs lib/vedeu/geometry/coordinate.rb in vedeu-0.6.2

- old
+ new

@@ -157,16 +157,18 @@ border.send(coordinate_type[3]) end # Ascertain the correct methods to use for determining the coordinates. # + # @raise [Vedeu::Error::InvalidSyntax] When the coordinate type is not + # given. # @return [Fixnum] def coordinate_type @_type ||= case type when :x then [:x, :bx, :bxn, :width] when :y then [:y, :by, :byn, :height] else - fail Vedeu::InvalidSyntax, + fail Vedeu::Error::InvalidSyntax, 'Coordinate type not given, cannot continue.' end end # Returns the maximum index for an area.