[BioRuby-cvs] bioruby/lib/bio/shell/plugin seq.rb,1.9,1.10

Katayama Toshiaki k at pub.open-bio.org
Thu Nov 24 14:32:06 EST 2005


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

Modified Files:
	seq.rb 
Log Message:
* variable name is changed for readability as commented by Trevor Wennblom


Index: seq.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/seq.rb,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** seq.rb	16 Nov 2005 04:03:23 -0000	1.9
--- seq.rb	24 Nov 2005 19:32:04 -0000	1.10
***************
*** 208,212 ****
  
      n = pos = 0
!     str = []
      while n < self.length
        pos = self[n, size].rindex(separater)
--- 208,212 ----
  
      n = pos = 0
!     ary = []
      while n < self.length
        pos = self[n, size].rindex(separater)
***************
*** 217,228 ****
  
        if pos
!         str << self[n, pos+separater.length]
          n += pos + separater.length
        else				# line too long or the last line
!         str << self[n, size]
          n += size
        end
      end
!     str = str.join("\n")
  
      str[0,0] = prefix + ' ' * (indent - prefix.length)
--- 217,228 ----
  
        if pos
!         ary << self[n, pos+separater.length]
          n += pos + separater.length
        else				# line too long or the last line
!         ary << self[n, size]
          n += size
        end
      end
!     str = ary.join("\n")
  
      str[0,0] = prefix + ' ' * (indent - prefix.length)
***************
*** 237,238 ****
--- 237,239 ----
    end
  end
+ 



More information about the bioruby-cvs mailing list