class OpenFeature::Hooks::ProcHook
- OpenFeature::Hooks::ProcHook
- OpenFeature::Hook
- Reference
- Object
Overview
Implements a Hook that will call the provided hook for the given methods.
Defined in:
openfeature/hooks/proc.crConstructors
Instance Method Summary
-
#after(ctx : HookContext, hints : Metadata, flag_details : FlagEvaluationDetails)
calls the after hook proc
-
#before(ctx : HookContext, hints : Metadata) : EvaluationContext | Nil
calls the before hook proc
-
#error(ctx : HookContext, hints : Metadata, ex : Exception)
calls the error hook proc
-
#finally(ctx : HookContext, hints : Metadata)
calls the finally hook proc
Instance methods inherited from class OpenFeature::Hook
after(ctx : HookContext, hints : Metadata, flag_details : FlagEvaluationDetails)
after,
before(ctx : HookContext, hints : Metadata) : EvaluationContext | Nil
before,
error(ctx : HookContext, hints : Metadata, ex : Exception)
error,
finally(ctx : HookContext, hints : Metadata)
finally
Constructor Detail
def self.new(*, before : BeforeStageHook | Nil = nil, after : AfterStageHook | Nil = nil, error : ErrorStageHook | Nil = nil, finally : FinallyStageHook | Nil = nil)
#
Instance Method Detail
calls the after hook proc
calls the before hook proc
calls the error hook proc