[BioRuby-cvs] bioruby/lib/bio reference.rb,1.24.2.4,1.24.2.5

Naohisa Goto ngoto at dev.open-bio.org
Tue Mar 4 11:31:47 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	reference.rb 
Log Message:
changed to use Bio::Sequence::Format::INSDFeatureHelper#wrap().


Index: reference.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/reference.rb,v
retrieving revision 1.24.2.4
retrieving revision 1.24.2.5
diff -C2 -d -r1.24.2.4 -r1.24.2.5
*** reference.rb	4 Mar 2008 10:07:49 -0000	1.24.2.4
--- reference.rb	4 Mar 2008 11:31:45 -0000	1.24.2.5
***************
*** 42,45 ****
--- 42,47 ----
    class Reference
  
+     include Bio::Sequence::Format::INSDFeatureHelper
+ 
      # Author names in an Array, [ "Hoge, J.P.", "Fuga, F.B." ].
      attr_reader :authors
***************
*** 288,294 ****
          end
        end
!       lines << @authors.join(', ').wrap(80, 'RA   ') + ';' unless @authors.nil?
!       lines << (@title == '' ? 'RT   ;' : ('"' + @title + '"').wrap(80, 'RT   ') + ';')
!       lines << @journal.wrap(80, 'RL   ') unless @journal == ''
        lines << "XX"
        return lines.join("\n")
--- 290,296 ----
          end
        end
!       lines << wrap(@authors.join(', '), 80, 'RA   ') + ';' unless @authors.nil?
!       lines << (@title == '' ? 'RT   ;' : wrap('"' + @title + '"', 80, 'RT   ') + ';')
!       lines << wrap(@journal, 80, 'RL   ') unless @journal == ''
        lines << "XX"
        return lines.join("\n")




More information about the bioruby-cvs mailing list