What's about Rational::compatible and Complex::compatible?

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.

For some another curious individuals, the question was already answered
on SO:

http://stackoverflow.com/a/35530735/477047

http://www.lover-fashion.com/Wholesale-Fashion-Clothes-c565.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs