ri command seems support both.
They both have different meanings:
Foo#bar : bar is an instance method of the class Foo
Foo.bar : bar is a class method of the class Foo
Hopes this helps a bit.
You can also use Foo::bar to mean a class method, but that form is
traditionally used to refer to constants rather than methods.