The Random class method Random.rand
is aliased as rand
(i.e. equivalent to Random.rand
). Is there anyway to get a listing of the class method aliases used by Ruby?
Not sure that Ruby documentation offers a complete list as it does identify rand
as an alias of Random.rand
but there is no mention that srand
is an alias yet it can be invoked using srand
or Random.srand
I eventually answered my own question - please have a look below.