Class: Spinny::LoadClient
- Inherits:
-
Object
- Object
- Spinny::LoadClient
- 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
-
#initialize(filepaths) ⇒ LoadClient
constructor
A new instance of LoadClient.
- #start! ⇒ Object
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 |