class Protobuf::Rpc::Service

def located_at(location)


e.g. localhost:0
e.g. 127.0.0.1:9933
Shorthand call to configure, passing a string formatted as hostname:port
def located_at(location)
  return if location.nil? or location.downcase.strip !~ /[a-z0-9.]+:\d+/
  host, port = location.downcase.strip.split ':'
  configure :host => host, :port => port.to_i
end