README.md in parse_fasta-2.1.0 vs README.md in parse_fasta-2.1.1

- old
+ new

@@ -60,11 +60,11 @@ ParseFasta::SeqFile.open(ARGV[0]).each_record do |rec| if rec.qual # it's a fastQ record else # it's a fastA record - end + end end ``` You can also check this with `Record#fastq?` @@ -72,16 +72,24 @@ ParseFasta::SeqFile.open(ARGV[0]).each_record do |rec| if rec.fastq? # it's a fastQ record else # it's a fastA record - end + end end ``` And there is a nice `#to_s` method, that does what it should whether the record is fastA or fastQ like. Check out the docs for info on the fancy `#to_fasta` and `#to_fastq` methods! ```ruby ParseFasta::SeqFile.open(ARGV[0]).each_record do |rec| puts rec.to_s +end +``` + +But of course, since it is a `#to_s` override...you don't even have to call it directly! + +```ruby +ParseFasta::SeqFile.open(ARGV[0]).each_record do |rec| + puts rec end ```