Sha256: 252380c95417d5869e95f44274156d8116534c98e7a0b3ba260cf4f4fcebf1df

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

require 'r2-oas/support/deprecation'

module R2OAS
  module AppConfiguration
    class Deprecation
      DEFAULT_SILENCED = ::R2OAS::Deprecation.silenced

      attr_reader :silenced

      def silenced=(value)
        @silenced = !!value
        ::R2OAS::Deprecation.silenced = !!value
      end

      def initialize
        set_default
      end

      private

      def set_default
        self.silenced = DEFAULT_SILENCED
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
r2-oas-0.5.0 lib/r2-oas/app_configuration/deprecation.rb
r2-oas-0.4.1 lib/r2-oas/app_configuration/deprecation.rb
r2-oas-0.4.0 lib/r2-oas/app_configuration/deprecation.rb