Method: OpenC3::InterfaceTopic.topics
- Defined in:
- lib/openc3/topics/interface_topic.rb
.topics(interface, scope:) ⇒ Object
Generate a list of topics for this interface. This includes the interface itself and all the targets which are assigned to this interface.
26 27 28 29 30 31 32 33 |
# File 'lib/openc3/topics/interface_topic.rb', line 26 def self.topics(interface, scope:) topics = [] topics << "{#{scope}__CMD}INTERFACE__#{interface.name}" interface.target_names.each do |target_name| topics << "{#{scope}__CMD}TARGET__#{target_name}" end topics end |