Method: OpenC3::System.instance
- Defined in:
- lib/openc3/system/system.rb
.instance(target_names = nil, target_config_dir = nil) ⇒ System
Get the singleton instance of System
105 106 107 108 109 110 111 112 113 |
# File 'lib/openc3/system/system.rb', line 105 def self.instance(target_names = nil, target_config_dir = nil) return @@instance if @@instance raise "System.instance parameters are required on first call" unless target_names and target_config_dir @@instance_mutex.synchronize do @@instance ||= self.new(target_names, target_config_dir) return @@instance end end |