Hi,
can anybody explain the existence of (sub)classes mentioned in the
subject ?
There is:
-
documentation missing
http://ruby-doc.org/core/Rational/compatible.html
http://ruby-doc.org/core/Complex/compatible.html -
identifier break class/constant naming rule, it should start with an
uppercase -
are inaccessible by standard ways although their existence is
registered
Rational::constants false # [:compatible]
Rational::compatible # NoMethodError: undefined method `compatible’
for Rational:Class
Rational::const_get ‘compatible’ # NameError: wrong constant name
compatible
Thanks.