A autodetection rule that passes data to the proc object.
database classes (lazy evaluation)
# File lib/bio/io/flatfile/autodetection.rb, line 208 def dbclasses unless @dbclasses @dbclasses = @dbclasses_lazy.collect { |x| get_dbclass(x) } end @dbclasses end
If given text (and/or meta information) is known, returns the database class. Otherwise, returns nil or false.
Refer RuleTemplate#guess for meta.
# File lib/bio/io/flatfile/autodetection.rb, line 220 def guess(text, meta) @proc.call(text) end
Generated with the Darkfish Rdoc Generator 2.