Module: Bio::References::BackwardCompatibility
- Defined in:
- lib/bio/compat/references.rb
Overview
module to keep backward compatibility with obsoleted Bio::References
Instance Method Summary collapse
-
#append(reference) ⇒ Object
Backward compatibility with Bio::References#append.
-
#references ⇒ Object
Backward compatibility with Bio::References#references.
Instance Method Details
#append(reference) ⇒ Object
Backward compatibility with Bio::References#append. Now, references are stored in an array, and you should change your code not to use this method.
60 61 62 63 64 |
# File 'lib/bio/compat/references.rb', line 60 def append(reference) warn 'Bio::References is obsoleted. Now, references are stored in an array.' self.push(reference) if reference.is_a? Reference self end |
#references ⇒ Object
Backward compatibility with Bio::References#references. Now, references are stored in an array, and you should change your code not to use this method.
52 53 54 55 |
# File 'lib/bio/compat/references.rb', line 52 def references warn 'Bio::References is obsoleted. Now, references are stored in an array.' self end |