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

- (RuleSpecial) initialize(name)



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

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

Instance Method Details

- (Object) higher_priority_elements

always returns void array



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

def higher_priority_elements
  []
end

- (Object) lower_priority_elements

always returns void array



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

def lower_priority_elements
  []
end

- (Object) name=(x)

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