Class: OpenFeatureSorbet::Hook::BeforeHook
- Inherits:
-
Object
- Object
- OpenFeatureSorbet::Hook::BeforeHook
- Extended by:
- T::Helpers, T::Sig
- Includes:
- OpenFeatureSorbet::Hook
- Defined in:
- lib/open_feature_sorbet/hook.rb
Overview
See Requirement 4.3.2 - 4.3.4
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(hooks:, context:, hints:) ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/open_feature_sorbet/hook.rb', line 33 def call(hooks:, context:, hints:) context.evaluation_context.merge( hooks.before.reduce(context.evaluation_context) do |evaluation_context, hook| hook.call( context: context.with_new_evaluation_context(evaluation_context), hints: hints ) end ) end |
Instance Method Details
#call(context:, hints:) ⇒ Object
24 |
# File 'lib/open_feature_sorbet/hook.rb', line 24 def call(context:, hints:); end |