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.101.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.25.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.24.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_ruby_utils-0.100.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.24.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_ruby_utils-0.99.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.23.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.22.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.21.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.20.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.19.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.18.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.17.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.16.1 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_ruby_utils-0.98.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.16.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.15.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.14.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
eac_ruby_utils-0.97.0 lib/eac_ruby_utils/speaker/receiver.rb
eac_tools-0.13.0 sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb