Sha256: 5d43d8219b6f302fb0555f89ed11b4e8ca23d0b67b76215ea1cef17df0fc4dcd

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module ProconBypassMan
  module ExternalInput
    class BootMessage
      # @return [ProconBypassMan::ExternalInput::Channels::Base]
      def initialize(channels: )
        @channels = channels
      end

      # @return [String]
      def to_s
        if @channels.nil? or @channels.empty?
          return 'DISABLE'
        end

        @channels.map(&:display_name_for_boot_message).join(', ')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/external_input/boot_message.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/external_input/boot_message.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/external_input/boot_message.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/external_input/boot_message.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/external_input/boot_message.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/external_input/boot_message.rb