Sha256: d17efb7f71fb16a7de162432a9a25d369dda6b9251939cebfd26e686454096e0

Contents?: true

Size: 532 Bytes

Versions: 5

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

module Trellodon
  module Formatters
    class Base
      attr_reader :board, :logger

      def initialize(logger: Config.logger)
        @logger = logger
      end

      def board_added(board)
        @board = board
      end

      def card_added(card)
        raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
      end

      def finish
        raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trellodon-0.4.0 lib/trellodon/formatters/base.rb
trellodon-0.3.0 lib/trellodon/formatters/base.rb
trellodon-0.2.1 lib/trellodon/formatters/base.rb
trellodon-0.2.0 lib/trellodon/formatters/base.rb
trellodon-0.1.0 lib/trellodon/formatters/base.rb