[BioRuby] Code style question

Andrew Grimm andrew.j.grimm at gmail.com
Sun Aug 16 10:42:23 UTC 2009


The Readme for developers mentions that

  if __FILE__ == $0

is deprecated for testing.

In lib/bio/db/fasta.rb , there's a __FILE__ == $0 that isn't used for
testing, but for demonstrating what the module's supposed to do. Is
this kind of coding non-deprecated?

Andrew



More information about the BioRuby mailing list