Module: BloodContracts::Instrumentation::SessionRecording::Inheritance

Defined in:
lib/blood_contracts/instrumentation/session_recording.rb

Overview

Modification to inheritance for the session recording

Instance Method Summary collapse

Instance Method Details

#inherited(child) ⇒ Nothing

Register the inherited type and set the session klass same as parent

Parameters:

  • child (BC::Refined)

    class to enhance

Returns:

  • (Nothing)


65
66
67
68
69
# File 'lib/blood_contracts/instrumentation/session_recording.rb', line 65

def inherited(child)
  child.session_klass = session_klass
  Instrumentation.register_type(child)
  super
end