Inspired by Florian G.'s Execute as Ruby Code Service for OS X
(http://www.ruby-forum.com/topic/102680), I have created InstantERB. It
uses the incredibly useful AutoHotKey utility. It will run any selected
text through ERB.
For example, selecting the following block of text and hitting
The value of pi is approximately <%= Math::PI %>.
% 3.times do |i|
<%= i %>
The value of pi is approximately 3.14159265358979.
Install AutoHotKey (http://www.autohotkey.com/)
You can either run InstantERB.ahk directly or copy and paste it into
your own AutoHotKey file.