lib/bio/db/fastq.rb in bio-1.4.3.0001 vs lib/bio/db/fastq.rb in bio-1.5.0

- old
+ new

@@ -493,10 +493,10 @@ # One of "fastq-sanger", "fastq-solexa", "fastq-illumina", # or nil (when not specified). # --- # *Returns*:: (String or nil) format name def format - @format ? @format.name : nil + ((defined? @format) && @format) ? @format.name : nil end # The meaning of the quality scores. # It may be one of :phred, :solexa, or nil.