Class: DeprecationHelper::Private::AllowList

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/deprecation_helper/private/allow_list.rb

Class Method Summary collapse

Class Method Details

.allowed?(allowable_frames, exception_frames) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
15
# File 'lib/deprecation_helper/private/allow_list.rb', line 9

def self.allowed?(allowable_frames, exception_frames)
  allowable_frames.any? do |allowable_frame|
    exception_frames.any? do |exception_frame|
      exception_frame.match?(allowable_frame)
    end
  end
end