[BioRuby-cvs] bioruby/lib bio.rb,1.75,1.76

Katayama Toshiaki k at dev.open-bio.org
Sun Dec 24 10:04:53 UTC 2006


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

Modified Files:
	bio.rb 
Log Message:
* autoload for Bio::Nexus
* added Bio.command module functions (where 'command' can be any of the
  BioRuby shell commands)


Index: bio.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio.rb,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** bio.rb	15 Dec 2006 15:02:27 -0000	1.75
--- bio.rb	24 Dec 2006 10:04:51 -0000	1.76
***************
*** 11,15 ****
  module Bio
  
!   BIORUBY_VERSION = [1, 0, 0].extend(Comparable)
  
    ### Basic data types
--- 11,15 ----
  module Bio
  
!   BIORUBY_VERSION = [1, 1, 0].extend(Comparable)
  
    ### Basic data types
***************
*** 118,121 ****
--- 118,122 ----
  
    autoload :Newick,         'bio/db/newick'
+   autoload :Nexus,          'bio/db/nexus'
  
    ### IO interface modules
***************
*** 251,254 ****
--- 252,268 ----
    autoload :Command,        'bio/command'
  
+   ### Provide BioRuby shell 'command' also as 'Bio.command' (like ChemRuby)
+ 
+   def self.method_missing(*args)
+     require 'bio/shell'
+     extend Bio::Shell
+     public_class_method(*Bio::Shell.private_instance_methods)
+     if Bio.respond_to?(args.first)
+       Bio.send(*args)
+     else
+       raise NameError
+     end
+   end
+ 
  end
  




More information about the bioruby-cvs mailing list