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

Inherits:
RuleTemplate show all
Defined in:
lib/bio/io/flatfile.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.



860
861
862
863
# File 'lib/bio/io/flatfile.rb', line 860

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

Instance Method Details

#guess(text, meta) ⇒ Object

prints information to the $stderr.



866
867
868
869
870
871
# File 'lib/bio/io/flatfile.rb', line 866

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