[BioRuby-cvs] bioruby/lib/bio/util/restriction_enzyme/single_strand cut_locations_in_enzyme_notation.rb, 1.4, 1.5

Trevor Wennblom trevor at dev.open-bio.org
Wed Apr 4 20:05:08 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/single_strand
In directory dev.open-bio.org:/tmp/cvs-serv13881/lib/bio/util/restriction_enzyme/single_strand

Modified Files:
	cut_locations_in_enzyme_notation.rb 
Log Message:
Removed "negative?" Integer extension

Index: cut_locations_in_enzyme_notation.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/single_strand/cut_locations_in_enzyme_notation.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cut_locations_in_enzyme_notation.rb	4 Apr 2007 18:07:44 -0000	1.4
--- cut_locations_in_enzyme_notation.rb	4 Apr 2007 20:05:06 -0000	1.5
***************
*** 10,14 ****
  
  require 'bio/util/restriction_enzyme/cut_symbol'
- require 'bio/util/restriction_enzyme/integer'
  require 'bio/sequence'
  
--- 10,13 ----
***************
*** 103,109 ****
    def to_array_index
      return [] if @min == nil
!     if @min.negative?
        calc = lambda do |n| 
!         n -= 1 unless n.negative?
          n + @min.abs
        end
--- 102,108 ----
    def to_array_index
      return [] if @min == nil
!     if @min < 0
        calc = lambda do |n| 
!         n -= 1 unless n < 0
          n + @min.abs
        end




More information about the bioruby-cvs mailing list