[BioRuby-cvs] bioruby/lib/bio/shell interface.rb,1.14,1.15

Katayama Toshiaki k at dev.open-bio.org
Sun Dec 24 08:36:47 UTC 2006


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

Modified Files:
	interface.rb 
Log Message:
* independent from IRB


Index: interface.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/interface.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** interface.rb	27 Feb 2006 09:36:35 -0000	1.14
--- interface.rb	24 Dec 2006 08:36:45 -0000	1.15
***************
*** 16,21 ****
  
    def ls
!     list = eval("local_variables", conf.workspace.binding).reject { |x|
!       eval(x, conf.workspace.binding).nil?
      }
      puts list.inspect
--- 16,22 ----
  
    def ls
!     bind = Bio::Shell.cache[:binding]
!     list = eval("local_variables", bind).reject { |x|
!       eval(x, bind).nil?
      }
      puts list.inspect
***************
*** 24,33 ****
  
    def rm(name)
!     list = eval("local_variables", conf.workspace.binding).reject { |x|
!       eval(x, conf.workspace.binding).nil?
      }
      begin
        if list.include?(name.to_s)
!         eval("#{name} = nil", conf.workspace.binding)
        else
          raise
--- 25,35 ----
  
    def rm(name)
!     bind = Bio::Shell.cache[:binding]
!     list = eval("local_variables", bind).reject { |x|
!       eval(x, bind).nil?
      }
      begin
        if list.include?(name.to_s)
!         eval("#{name} = nil", bind)
        else
          raise




More information about the bioruby-cvs mailing list