Sha256: fef81e35c09289d008adf7061827acf76a70882c7f6927f9fde2b2482746a2bb
Contents?: true
Size: 793 Bytes
Versions: 4
Compression:
Stored size: 793 Bytes
Contents
module Vedeu module Distributed # Value class which provides the host and port for the DRb server and # client. # class Uri # @!attribute [r] host # @return [String] attr_reader :host # @!attribute [r] port # @return [Fixnum|String] attr_reader :port # @param host [String] Hostname or IP address. # @param port [Fixnum|String] # @return [Uri] def initialize(host = 'localhost', port = 21420) @host = host || 'localhost' @port = port || 21420 end # @example # 'druby://localhost:21420' # # @return [String] The host and port as a single value. def to_s ['druby://', host, ':', port].join end end # Uri end # Distributed end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.9 | lib/vedeu/distributed/uri.rb |
vedeu-0.4.8 | lib/vedeu/distributed/uri.rb |
vedeu-0.4.7 | lib/vedeu/distributed/uri.rb |
vedeu-0.4.6 | lib/vedeu/distributed/uri.rb |