[BioRuby-cvs] bioruby/lib/bio reference.rb,1.17,1.18

Mitsuteru C. Nakao nakao at pub.open-bio.org
Sun Dec 18 11:59:00 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio
In directory pub.open-bio.org:/tmp/cvs-serv29565/lib/bio

Modified Files:
	reference.rb 
Log Message:
* Removed TAB.


Index: reference.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/reference.rb,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** reference.rb	8 Sep 2005 01:22:08 -0000	1.17
--- reference.rb	18 Dec 2005 16:58:58 -0000	1.18
***************
*** 27,45 ****
      def initialize(hash)
        hash.default = ''
!       @authors	= hash['authors']	# [ "Hoge, J.P.", "Fuga, F.B." ]
!       @title	= hash['title']		# "Title of the study."
!       @journal	= hash['journal']	# "Theor. J. Hoge"
!       @volume	= hash['volume']	# 12
!       @issue	= hash['issue']		# 3
!       @pages	= hash['pages']		# 123-145
!       @year	= hash['year']		# 2001
!       @pubmed	= hash['pubmed']	# 12345678
!       @medline	= hash['medline']	# 98765432
!       @abstract	= hash['abstract']
!       @url	= hash['url']
!       @mesh	= hash['mesh']
        @affiliations = hash['affiliations']
!       @authors	= [] if @authors.empty?
!       @mesh	= [] if @mesh.empty?
        @affiliations = [] if @affiliations.empty?
      end
--- 27,45 ----
      def initialize(hash)
        hash.default = ''
!       @authors  = hash['authors'] # [ "Hoge, J.P.", "Fuga, F.B." ]
!       @title    = hash['title']   # "Title of the study."
!       @journal  = hash['journal'] # "Theor. J. Hoge"
!       @volume   = hash['volume']  # 12
!       @issue    = hash['issue']   # 3
!       @pages    = hash['pages']   # 123-145
!       @year     = hash['year']    # 2001
!       @pubmed   = hash['pubmed']  # 12345678
!       @medline  = hash['medline'] # 98765432
!       @abstract = hash['abstract']
!       @url      = hash['url']
!       @mesh     = hash['mesh']
        @affiliations = hash['affiliations']
!       @authors = [] if @authors.empty?
!       @mesh    = [] if @mesh.empty?
        @affiliations = [] if @affiliations.empty?
      end



More information about the bioruby-cvs mailing list