Class: ProjectSimulator::Server
- Inherits:
-
Object
- Object
- ProjectSimulator::Server
- Defined in:
- lib/projectsimulator.rb
Instance Method Summary collapse
-
#initialize(macros_package, drb_host: '127.0.0.1', devices: nil, debug: false) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(macros_package, drb_host: '127.0.0.1', devices: nil, debug: false) ⇒ Server
Returns a new instance of Server.
15 16 17 18 19 20 21 22 |
# File 'lib/projectsimulator.rb', line 15 def initialize(macros_package, drb_host: '127.0.0.1', devices: nil, debug: false) rdc = ProjectSimulator::Controller.new(macros_package, devices: devices, debug: debug) @drb = OneDrb::Server.new host: drb_host, port: '5777', obj: rdc end |
Instance Method Details
#start ⇒ Object
24 25 26 |
# File 'lib/projectsimulator.rb', line 24 def start @drb.start end |