Sha256: 2b81c950bef9924c05b4a95ff5a48cc430841fa1e25d5d7ac636654b1e6c8e4e

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

module BundleNotification
  module Serializer
    class << self
      delegate :dump, to: :serializer

      def load(data)
        serializer.load(data) if data
      end

      def serializer
        BundleNotification.config.serializer || YAML
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bundle_notification-0.2.2 lib/bundle_notification/serializer.rb
bundle_notification-0.2.1 lib/bundle_notification/serializer.rb
bundle_notification-0.2.0 lib/bundle_notification/serializer.rb