Class: ProconBypassMan::ExternalInput::BootMessage
- Inherits:
-
Object
- Object
- ProconBypassMan::ExternalInput::BootMessage
- Defined in:
- lib/procon_bypass_man/external_input/boot_message.rb
Instance Method Summary collapse
Constructor Details
#initialize(channels:) ⇒ ProconBypassMan::ExternalInput::Channels::Base
7 8 9 |
# File 'lib/procon_bypass_man/external_input/boot_message.rb', line 7 def initialize(channels: ) @channels = channels end |
Instance Method Details
#to_s ⇒ String
12 13 14 15 16 17 18 |
# File 'lib/procon_bypass_man/external_input/boot_message.rb', line 12 def to_s if @channels.nil? or @channels.empty? return 'DISABLE' end @channels.map(&:display_name_for_boot_message).join(', ') end |