Serving out static files shouldn't require creating a VirtualHost
in Apache or a nginx config file (this project may not be render this claim inaccurate though). Here's how to do it in one line.
$ ruby -run -e httpd . -p8000
In true dsl fashion, this require
s the ...
For details on the bug itself, see the ticket description
Summary: in Ctrl-R (reverse-i-search), Alt-* leads to * being inserted at the cursor, instead of the command being executed. eg. 'f' is inserted when Alt-F is hit, instead of the cursor being moved to the end of word (forward-word).
It took ...
I used to be of the opinion that Ruby takes OOP to the limit, by allowing reopenable classes.
Take the factorial function. It operates on numbers, so conceivably, there should be a "factorial" message on receivers of type Number (to borrow from Smalltalk). Here's how it can be done ...