[BioRuby-cvs] bioruby/lib/bio command.rb,1.7,1.8

Naohisa Goto ngoto at dev.open-bio.org
Thu Apr 27 03:15:29 UTC 2006


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

Modified Files:
	command.rb 
Log Message:
Bio::Command::NetTools can be included in classes.


Index: command.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/command.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** command.rb	27 Apr 2006 02:33:43 -0000	1.7
--- command.rb	27 Apr 2006 03:15:27 -0000	1.8
***************
*** 160,166 ****
  
    # Same as OpenURI.open_uri(uri).read.
!   def self.read_uri(uri)
      OpenURI.open_uri(uri).read
    end
  
    # Same as:
--- 160,167 ----
  
    # Same as OpenURI.open_uri(uri).read.
!   def read_uri(uri)
      OpenURI.open_uri(uri).read
    end
+   module_function :read_uri
  
    # Same as:
***************
*** 170,174 ****
    # is set.
    #
!   def self.net_http_start(address, port = 80, &block)
      uri = URI.parse("http://#{address}:#{port}")
      # Note: URI#find_proxy is an unofficial method defined in open-uri.rb.
--- 171,175 ----
    # is set.
    #
!   def net_http_start(address, port = 80, &block)
      uri = URI.parse("http://#{address}:#{port}")
      # Note: URI#find_proxy is an unofficial method defined in open-uri.rb.
***************
*** 182,185 ****
--- 183,188 ----
      http.start(address, port, &block)
    end
+   module_function :net_http_start
+ 
  end #module NetTools
  




More information about the bioruby-cvs mailing list