Relatively new to Ruby, and I am having a lot of trouble with documentation. My main problem is, how do I tell what type of object is returned from a method?
If I take a look at Objective-C or Java docs, I can see:
FunctionX returns object of type Y.
I can click on Y and find out all about that class. Contrast that with ActiveRecord::Base's docs. If I look at the #connection
method, it tells me:
Returns the connection currently associated with the class.
What the heck is a connection? I want to find out more about the connection object's class. Doesn't every method specify what the return type is?