Some links for you:

Ruby Newbie's Guide to Getting Started

Ruby Resources

[info] Using Ruby Modules

and Jim Foltz has an InputBox class wrapper that makes it easier to use the UI.inputbox method. Not sure where it's kept, but he'll see this post and let ya know.