Class: Bio::FlatFile::AutoDetect::RuleSpecial

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

Overview

Special element that is always top or bottom priority.

Instance Attribute Summary

Attributes inherited from RuleTemplate

#dbclasses, #name

Instance Method Summary collapse

Methods inherited from RuleTemplate

[], #guess, #is_prior_to

Constructor Details

#initialize(name) ⇒ RuleSpecial

Returns a new instance of RuleSpecial.



876
877
878
879
# File 'lib/bio/io/flatfile.rb', line 876

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

Instance Method Details

#higher_priority_elementsObject

always returns void array



886
887
888
# File 'lib/bio/io/flatfile.rb', line 886

def higher_priority_elements
  []
end

#lower_priority_elementsObject

always returns void array



890
891
892
# File 'lib/bio/io/flatfile.rb', line 890

def lower_priority_elements
  []
end

#name=(x) ⇒ Object

modification of @name is inhibited.



881
882
883
# File 'lib/bio/io/flatfile.rb', line 881

def name=(x)
  raise 'cannot modify name'
end