How can I run a ruby piece of code from a buffer, without actually saving the buffer in a file? A scenario would be to a) switch to the scratch buffer b) M-x ruby-mode c) type
1. Rinari from Github
It claims to be
aimed towards making Emacs into a top-notch Ruby and Rails development environment
2. ruby-compilation.el is what you need.
There's a thread on that here which I have used and found helpful.
Chris