Class: Bio::FlatFile::AutoDetect::RuleSpecial
- Inherits:
-
RuleTemplate
- Object
- RuleTemplate
- Bio::FlatFile::AutoDetect::RuleSpecial
- 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
Instance Method Summary collapse
-
#higher_priority_elements ⇒ Object
always returns void array.
-
#initialize(name) ⇒ RuleSpecial
constructor
A new instance of RuleSpecial.
-
#lower_priority_elements ⇒ Object
always returns void array.
-
#name=(x) ⇒ Object
modification of @name is inhibited.
Methods inherited from RuleTemplate
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_elements ⇒ Object
always returns void array
128 129 130 |
# File 'lib/bio/io/flatfile/autodetection.rb', line 128 def higher_priority_elements [] end |
#lower_priority_elements ⇒ Object
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 |