Method: Vedeu::Point#max

Defined in:
lib/vedeu/support/point.rb

#maxFixnum (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Fixnum)

Raises:

  • (Vedeu::Error::InvalidSyntax)

    When the value given for an argument or parameter cannot be used because it is not valid for the use case, unsupported or the method expects a different type.



81
82
83
84
85
86
# File 'lib/vedeu/support/point.rb', line 81

def max
  return @max if numeric?(@max)

  raise Vedeu::Error::InvalidSyntax,
        "Expecting 'max' to be a Fixnum or Float::INFINITY."
end