Sha256: f30b73998ff460e0bf2db1ac701182dc76eb73b707b443e6d37d606a54796ff4
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: HostDispatcher.rb 567 2005-04-13 08:00:06Z polrop $ module TTK module Tools class HostDispatcher require 'singleton' include Singleton attr_reader :hosts def initialize @hosts = [] end def << ( aConf ) unless aConf.is_a? Hash raise ArgumentError, "not a valid conf: `#{aConf}:#{aConf.class}'" end @hosts << aConf end def hosts= ( anArray ) @hosts.clear anArray.each { |x| self << x } end def aConf aConf = hosts.shift hosts.push aConf aConf end end # class HostDispatcher end # module Tools end # module TTK
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ttk-0.1.576 | lib/ttk/Tools/HostDispatcher.rb |
ttk-0.1.579 | lib/ttk/Tools/HostDispatcher.rb |
ttk-0.1.580 | lib/ttk/Tools/HostDispatcher.rb |