Class: Spinny::LoadClient

Inherits:
Object
  • Object
show all
Defined in:
lib/spinny/load_client.rb

Overview

A simple client that just loads files Can be used to run Minitest tests

Instance Method Summary collapse

Constructor Details

#initialize(filepaths) ⇒ LoadClient

Returns a new instance of LoadClient.



5
6
7
8
# File 'lib/spinny/load_client.rb', line 5

def initialize(filepaths)
  @code = filepaths.map {|fp| "load '#{fp}'"}.join(';')
  @connection = Server.connect
end

Instance Method Details

#start!Object



10
11
12
# File 'lib/spinny/load_client.rb', line 10

def start!
  @connection.push(@code)
end