Ruby: Remove instances of a method

Here’s an “old school” style jig. I first attempted this in Haskell, but I needed Perl-compatible regular expressions (Posix can’t handle the negative lookahead needed for correctly identifying C-style comments), and installing the PCRE library for Haskell on Windows is painful, though I’ll get around to it one of these days.

 
require ‘find’
 
Find.find "Components\\CommComponents" do |p|
[...]

September 3, 2009 • Tags: , , • Posted in: Jigs • Comments Closed