Sha256: c40de685e86bf1e24f8b9942acfe125e25657293e4e197a442d40945c2d60efc
Contents?: true
Size: 415 Bytes
Versions: 6
Compression:
Stored size: 415 Bytes
Contents
require 'drb' module God class Reporter def initialize(host = nil, port = nil) @host = host @port = port || 7777 @service = nil end def method_missing(*args, &block) service.send(*args, &block) end private def service return @service if @service DRb.start_service @service = DRbObject.new(nil, "druby://#{@host}:#{@port}") end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
god-0.2.0 | lib/god/reporter.rb |
god-0.4.1 | lib/god/reporter.rb |
god-0.4.3 | lib/god/reporter.rb |
god-0.1.0 | lib/god/reporter.rb |
god-0.3.0 | lib/god/reporter.rb |
god-0.4.0 | lib/god/reporter.rb |