Sha256: e614a8f81734adccd7f9f7c915c23e240aca8fc4b1ba59ae890ad7521d917130
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true # MEMO: # copy from https://github.com/rails/rails/blob/master/activesupport/lib/active_support/deprecation/behaviors.rb module R2OAS class Deprecation class DeprecationError < StandardError; end DEFAULT_BEHAVIORS = { stderr: lambda { |message, _callstack, _deprecation_horizon, _gem_name| $stderr.puts(message) } }.freeze module Behavior def behavior @behavior ||= [DEFAULT_BEHAVIORS[:stderr]] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
r2-oas-0.5.0 | lib/r2-oas/support/deprecation/behavior.rb |
r2-oas-0.4.1 | lib/r2-oas/support/deprecation/behavior.rb |
r2-oas-0.4.0 | lib/r2-oas/support/deprecation/behavior.rb |