[BioRuby-cvs] bioruby/lib/bio/db/genbank common.rb, 1.11.2.2, 1.11.2.3
Naohisa Goto
ngoto at dev.open-bio.org
Tue Mar 4 10:32:57 UTC 2008
Update of /home/repository/bioruby/bioruby/lib/bio/db/genbank
In directory dev.open-bio.org:/tmp/cvs-serv7470/lib/bio/db/genbank
Modified Files:
Tag: BRANCH-biohackathon2008
common.rb
Log Message:
Changed not to use Bio::References and Bio::Features.
To keep backward compatibility, BackwardCompatibility modules is used
to extend an array.
Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/common.rb,v
retrieving revision 1.11.2.2
retrieving revision 1.11.2.3
diff -C2 -d -r1.11.2.2 -r1.11.2.3
*** common.rb 3 Mar 2008 18:30:50 -0000 1.11.2.2
--- common.rb 4 Mar 2008 10:32:55 -0000 1.11.2.3
***************
*** 179,183 ****
ary.push(Reference.new(hash))
end
! @data['REFERENCE'] = References.new(ary)
end
if block_given?
--- 179,183 ----
ary.push(Reference.new(hash))
end
! @data['REFERENCE'] = ary.extend(Bio::References::BackwardCompatibility)
end
if block_given?
***************
*** 197,202 ****
! # FEATURES -- Returns contents of the FEATURES record as a Bio::Features
! # object.
def features
unless @data['FEATURES']
--- 197,202 ----
! # FEATURES -- Returns contents of the FEATURES record as an array of
! # Bio::Feature objects.
def features
unless @data['FEATURES']
***************
*** 240,244 ****
end
! @data['FEATURES'] = Features.new(ary)
end
if block_given?
--- 240,244 ----
end
! @data['FEATURES'] = ary.extend(Bio::Features::BackwardCompatibility)
end
if block_given?
More information about the bioruby-cvs
mailing list