Yipeee, i have stared using alias in Ruby. One typo that i often run into it doing “alias new_name, old_name” viz. putting the comma between the old and the new names. Gotta be more careful about it.
Background: I wanted to override a method in the Autotest class of the Zentest plugin to make it run the tests for 2 or 3 different conditions (enforced by the setting of a global variable). So what i did was to redefine the run_tests method in Autotest class to make the core loop (open(” | #{test_cmd}…”)) run inside a loop with a new env setting everytime.
Ruby is AWESOME!!
Blogged with the Flock Browser
Advertisement