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

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



118
119
120
121
# File 'lib/bio/io/flatfile/autodetection.rb', line 118

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

Instance Method Details

#higher_priority_elementsObject

always returns void array



128
129
130
# File 'lib/bio/io/flatfile/autodetection.rb', line 128

def higher_priority_elements
  []
end

#lower_priority_elementsObject

always returns void array



132
133
134
# File 'lib/bio/io/flatfile/autodetection.rb', line 132

def lower_priority_elements
  []
end

#name=(x) ⇒ Object

modification of @name is inhibited.



123
124
125
# File 'lib/bio/io/flatfile/autodetection.rb', line 123

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