Sha256: 0ed47dc6b7a461912ccc77900f7577fd92f4e2283c95ac77851136574a0d60ae
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
require File.dirname(__FILE__) + "/remoter_base" class Object def remote_bases $remote_bases ||= [] end #TODO: deprecate, this is taken care of with inherited hook # Register the remoter base in the remote_bases global store def register_remote_base(*args) args.each do |arg| base_name = "#{arg}".downcase.to_sym (remote_bases << base_name) unless remote_bases.include?(base_name) end end alias :available_bases :remote_bases end Dir["#{File.dirname(__FILE__)}/remote_bases/*.rb"].each do |base| name = ::File.basename(base, ::File.extname(base)) require base end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-1.2.3 | lib/poolparty/net/remote_bases.rb |
auser-poolparty-1.2.4 | lib/poolparty/net/remote_bases.rb |
auser-poolparty-1.2.7 | lib/poolparty/net/remote_bases.rb |