When working in interactive python, I tend to rely on the builtin help() function to tell me what something expects and/or returns, and print out any documentation that might help me. Is there a ruby equivalent to this function?
EDIT I'm looking for something I could use in irb. For example in interactive python I could type
>>> help(1)
which would then print
Help on int object:
class int(object) | int(x[, base]) -> integer | |
Convert a string or number to an integer, if possible. A ...