Method: Master::Base#initialize
- Defined in:
- lib/spark/worker/master.rb
#initialize ⇒ Base
Returns a new instance of Base.
| 32 33 34 35 36 | # File 'lib/spark/worker/master.rb', line 32 def initialize @port = ARGV[1].to_s.strip.to_i @socket = TCPSocket.open('localhost', @port) @worker_arguments = @socket.read_string end |