Class: Bio::FlatFile::AutoDetect::RuleDebug

Inherits:
RuleTemplate show all
Defined in:
lib/bio/io/flatfile/autodetection.rb

Overview

RuleDebug is a class for debugging autodetect classes/methods

Instance Attribute Summary

Attributes inherited from RuleTemplate

#dbclasses, #higher_priority_elements, #lower_priority_elements, #name

Instance Method Summary collapse

Methods inherited from RuleTemplate

[], #is_prior_to

Constructor Details

#initialize(name) ⇒ RuleDebug

Creates a new instance.



102
103
104
105
# File 'lib/bio/io/flatfile/autodetection.rb', line 102

def initialize(name)
  super()
  @name = name
end

Instance Method Details

#guess(text, meta) ⇒ Object

prints information to the $stderr.



108
109
110
111
112
113
# File 'lib/bio/io/flatfile/autodetection.rb', line 108

def guess(text, meta)
  $stderr.puts @name
  $stderr.puts text.inspect
  $stderr.puts meta.inspect
  nil
end