Sha256: 258e688063c69c429a5fd60c84f7988801c17a65f87d913ee2ee84f9b58b5de4

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

module PubSubModelSync
  class Base
    delegate :config, :log, to: self

    class << self
      def config
        PubSubModelSync::Config
      end

      def log(message, kind = :info)
        config.log message, kind
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pub_sub_model_sync-0.5.3 lib/pub_sub_model_sync/base.rb
pub_sub_model_sync-0.5.2 lib/pub_sub_model_sync/base.rb
pub_sub_model_sync-0.5.1.1 lib/pub_sub_model_sync/base.rb
pub_sub_model_sync-0.5.1 lib/pub_sub_model_sync/base.rb
pub_sub_model_sync-0.5.0.1 lib/pub_sub_model_sync/base.rb
pub_sub_model_sync-0.5.0 lib/pub_sub_model_sync/base.rb