Write a script in the editor.

you can input easily and quickly with Auto Complete or Abbrev Option.

you can access to the ruby's help file by pressing [F1].

Ok, you finish to write a script first.