[BioRuby-cvs] bioruby/lib/bio/util/restriction_enzyme single_strand.rb, 1.4, 1.5 integer.rb, 1.2, NONE
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
In directory dev.open-bio.org:/tmp/cvs-serv13881/lib/bio/util/restriction_enzyme
Modified Files:
single_strand.rb
Removed Files:
integer.rb
Log Message:
Removed "negative?" Integer extension
--- integer.rb DELETED ---
Index: single_strand.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/single_strand.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** single_strand.rb 4 Apr 2007 18:07:43 -0000 1.4
--- single_strand.rb 4 Apr 2007 20:05:05 -0000 1.5
***************
*** 136,140 ****
def pattern
return stripped if @cut_locations_in_enzyme_notation.min == nil
! left = (@cut_locations_in_enzyme_notation.min.negative? ? 'n' * @cut_locations_in_enzyme_notation.min.abs : '')
# Add one more 'n' if a cut is at the last position
--- 136,140 ----
def pattern
return stripped if @cut_locations_in_enzyme_notation.min == nil
! left = (@cut_locations_in_enzyme_notation.min < 0 ? 'n' * @cut_locations_in_enzyme_notation.min.abs : '')
# Add one more 'n' if a cut is at the last position
More information about the bioruby-cvs
mailing list