Method: Bio::FlatFile::AutoDetect::RuleRegexp#guess
- Defined in:
- lib/bio/io/flatfile/autodetection.rb
#guess(text, meta) ⇒ Object
If given text matches the regexp, returns the database class. Otherwise, returns nil or false. meta is ignored.
170 171 172 |
# File 'lib/bio/io/flatfile/autodetection.rb', line 170 def guess(text, ) @re =~ text ? dbclass : nil end |