What is the ruby main method?

I am trying to obtain documentation using ri on my local machine. If I dont require any method in my script and I want to find information on .value or .inspect or anything that is native without calling in a method how can I look that up with ri, or even rdoc?

If you just search on the method name, you should get a list of all the objects that have it:

$ ri value
= .value

(from ruby core)
=== Implementation from Cookie
------------------------------------------------------------------------------
  value()

------------------------------------------------------------------------------

Returns the value or list of values for this cookie.
[more]

All objects have a base class of Object so you can get more specific, too:

$ ri Object.inspect
= Object.inspect

(from ruby core)
------------------------------------------------------------------------------
  obj.inspect   -> string

------------------------------------------------------------------------------

Returns a string containing a human-readable representation of obj. By
default, show the class name and the list of the instance variables and their
values (by calling #inspect on each of them). User defined classes should
override this method to make better representation of obj.  When
overriding this method, it should return a string whose encoding is compatible
with the default external encoding.
[more]