class OpenFeature::EvaluationOptions
- OpenFeature::EvaluationOptions
- Reference
- Object
Overview
Additional options that allow to define hooks and hook options for an invocation.
Defined in:
openfeature/evaluation.cropenfeature/hooks/proc.cr
Constructors
- .new(hook_hints : Metadata | Nil = nil)
- .new(hooks : Array(Hook), hook_hints : Metadata | Nil = nil)
Instance Method Summary
- #add_hook(h : Hook)
-
#add_proc_hook(*, before : BeforeStageHook | Nil = nil, after : AfterStageHook | Nil = nil, error : ErrorStageHook | Nil = nil, finally : FinallyStageHook | Nil = nil)
Add proc based hook to invocation hooks
- #hook_hints : Metadata
- #hook_hints=(hook_hints : Metadata)
- #hooks : Array(Hook)
- #hooks=(hooks : Array(Hook))
Constructor Detail
Instance Method Detail
def add_proc_hook(*, before : BeforeStageHook | Nil = nil, after : AfterStageHook | Nil = nil, error : ErrorStageHook | Nil = nil, finally : FinallyStageHook | Nil = nil)
#
Add proc based hook to invocation hooks