Module: Bio::Features::BackwardCompatibility
- Defined in:
- lib/bio/compat/features.rb
Overview
module to keep backward compatibility with obsoleted Bio::Features
Instance Method Summary collapse
-
#append(feature) ⇒ Object
Backward compatibility with Bio::Features#append.
-
#features ⇒ Object
Backward compatibility with Bio::Features#features.
Instance Method Details
#append(feature) ⇒ Object
Backward compatibility with Bio::Features#append. Now, references are stored in an array, and you should change your code not to use this method.
81 82 83 84 85 |
# File 'lib/bio/compat/features.rb', line 81 def append(feature) warn 'Bio::Features is obsoleted. Now, features are stored in an array.' self.push(feature) if feature.is_a? Feature self end |
#features ⇒ Object
Backward compatibility with Bio::Features#features. Now, features are stored in an array, and you should change your code not to use this method.
73 74 75 76 |
# File 'lib/bio/compat/features.rb', line 73 def features warn 'Bio::Features is obsoleted. Now, features are stored in an array.' self end |