Newer
Older
2018-fumichan-thesis / form-sample / vendor / bundle / ruby / 2.5.0 / gems / activesupport-5.2.1 / lib / active_support / messages / rotation_configuration.rb
# frozen_string_literal: true

module ActiveSupport
  module Messages
    class RotationConfiguration # :nodoc:
      attr_reader :signed, :encrypted

      def initialize
        @signed, @encrypted = [], []
      end

      def rotate(kind, *args)
        case kind
        when :signed
          @signed << args
        when :encrypted
          @encrypted << args
        end
      end
    end
  end
end