Simon,
I was hoping you would implement this with external :)
It looks great.
I've been looking at the bioruby Bio::FastaFormat API (
http://bioruby.org/rdoc/classes/Bio/FastaFormat.html) and thinking that we should probably support the :seq method call, maybe with a method alias:
alias_method :seq, :sequence # Bio uses :seq to return the sequence as a string
Its a little disturbing, but I can't seem to find a method that just returns the original header in FastaFormat... there's nothing equivalent to :header in bioruby that I can find! [there really should be a way to get at the original header string, eh?] Down the road we could probably use some of the Bioruby code to offer some nice functionality (
http://bioruby.org/rdoc/classes/Bio/FastaDefline.html).
--John