[BioRuby-cvs] bioruby/test/unit/bio test_map.rb,1.2,1.3

Jan Aerts aerts at dev.open-bio.org
Tue Jun 27 12:37:44 UTC 2006


Update of /home/repository/bioruby/bioruby/test/unit/bio
In directory dev.open-bio.org:/tmp/cvs-serv8703/test/unit/bio

Modified Files:
	test_map.rb 
Log Message:
Removed Enumerable mixin from ActsLikeMap and ActsLikeMarker, because 'def each' would be ambiguous.
Included examples for using ActsLikeMap and ActsLikeMarker.


Index: test_map.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/test_map.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_map.rb	7 Jun 2006 12:56:29 -0000	1.2
--- test_map.rb	27 Jun 2006 12:37:42 -0000	1.3
***************
*** 6,10 ****
  # License::     Ruby's
  #
! # $Id$
  
  require 'pathname'
--- 6,10 ----
  # License::     Ruby's
  #
! # $Id:
  
  require 'pathname'
***************
*** 182,184 ****
--- 182,197 ----
      end
    end
+   
+   class Clone
+     include Bio::Map::ActsLikeMap
+     include Bio::Map::ActsLikeMarker
+     
+     def initialize(name)
+       @name = name
+       @mappings_as_map = Array.new
+       @mappings_as_marker = Array.new
+     end
+     attr_accessor :name, :mappings_as_map, :mappings_as_marker
+   end
+   
  end




More information about the bioruby-cvs mailing list