Module: Infield::InfieldWarningCapture

Defined in:
lib/infield/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#warn(msg) ⇒ Object

Ruby < 3.0 only provides a single argument to warn



16
17
18
19
20
# File 'lib/infield/core_ext.rb', line 16

def warn(msg, category: nil, **kwargs)
  super

  Infield::DeprecationWarning.log(msg, callstack: caller_locations, validated: true) if category == :deprecated
end