Editor.rb is a project mainly written in Ruby, it's free.
Edit Strings in irb with your favorite editor.
A venry tool for irb.
$ irb -reditor
> Editor.edit("abc") # Edit "abc" with the external editor.
=> "abc has changed"
> include Editor
> record.body = edit(record.body)
> record.save # play with ActiveRecord.
MIT License.