Ruby constants have weird behavior in class_eval
I was playing with some code the other day, and I noticed that constants work strangely in class_eval blocks. Sometimes it can find the constant, and sometim...
I was playing with some code the other day, and I noticed that constants work strangely in class_eval blocks. Sometimes it can find the constant, and sometim...
I needed to edit numerous files today on a remote linux box. Normally, I would ssh in and use vi. However, I had to edit ruby/rhtml files and I wanted a fami...
Update (2/20/09): Check out Useful unix tricks – part 2, Useful unix tricks – part 3 and Useful unix tricks – part 4
Update (9/5/07): My project has since switched over to UnitRecord for the reasons outlined by Dan Manges.
One thing that really bothers me about ruby is its use of cryptic variables such as $: and $?. For example: