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)

Instance Method Details

- (Object) append(reference)

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

- (Object) references

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