Sha256: e29b8d8aebd05b359a11865de3a91906416e12dff877eb44dcf3703db3f4ce5f

Contents?: true

Size: 1.31 KB

Versions: 146

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/abstract_methods'

module EacRubyUtils
  module Speaker
    module Receiver
      extend ::ActiveSupport::Concern
      extend ::EacRubyUtils::AbstractMethods

      module ClassMethods
        def on(*args, &block)
          ::EacRubyUtils::Speaker.context.on(new(*args), &block)
        end
      end

      def error(_string)
        raise_abstract_method(__method__)
      end

      def fatal_error(string)
        error(string)
        ::Kernel.exit 1 # rubocop:disable Rails/Exit
      end

      # @see EacRubyUtils::Speaker::Sender.input
      def input(_question, _options = {})
        raise_abstract_method(__method__)
      end

      def info(_string)
        raise_abstract_method(__method__)
      end

      def infom(_string)
        raise_abstract_method(__method__)
      end

      def infov(*_args)
        raise_abstract_method(__method__)
      end

      def out(_string = '')
        raise_abstract_method(__method__)
      end

      def puts(_string = '')
        raise_abstract_method(__method__)
      end

      def success(_string)
        raise_abstract_method(__method__)
      end

      def title(_string)
        raise_abstract_method(__method__)
      end

      def warn(_string)
        raise_abstract_method(__method__)
      end
    end
  end
end

Version data entries

146 entries across 146 versions & 3 rubygems

Version Path
eac_ruby_utils-0.113.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.63.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.62.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.62.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.61.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.61.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.60.3 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.60.2 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.60.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.60.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.59.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.58.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.57.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.56.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.56.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.55.7 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.55.6 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.55.5 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.55.4 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.55.3 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb