Method: Bio::FlatFile::AutoDetect::RuleRegexp2#guess

Defined in:
lib/bio/io/flatfile/autodetection.rb

#guess(text, meta) ⇒ Object

If given text matches one of the regexp, returns the database class. Otherwise, returns nil or false. meta is ignored.



188
189
190
191
192
193
# File 'lib/bio/io/flatfile/autodetection.rb', line 188

def guess(text, meta)
  @regexps.each do |re|
    return dbclass if re =~ text
  end
  nil
end