Joel VanderWerf <vjoel / path.berkeley.edu> wrote: > > Just for fun... > > $ ruby code-nanny.rb > Did you type too fast again? 'initalize' != 'initialize' > Did you type too fast again? 'intialize' != 'initialize' > Did you type too fast again? 'inaltiaez' != 'initialize' > Did you type too fast again? 'initiliaze' != 'initialize' > $ cat code-nanny.rb > module CodeNanny > def method_added(m) > if /^in[ital]{2,6}[alize]{2,6}\b/ =~ m.to_s > if m != :initialize > warn "Did you type too fast again? '#{m}' != 'initialize'" > end > end > end > end You missed 'initialise'! (I remember various ruby-lint projects being mentioned in the past - anyone know what happened to them?) martin