kit-contract edge
MethodWrapper
module
Kit::Contract::Services::MethodWrapper
View Source
Kit::Contract::Services::MethodWrapper
Logic to rewrite methods in order to add signature contracts.
Link to this section Summary ⚠️ Private APIs are currently hidden.
Link to this section Class methods 3
Rename the method so that we can replace it by a wrapped version that will be able to enforce contracts
Link to this method
.create_method_wrapper(extension_target:, target_class:, method_name:, method_type:, aliased_name:, contracts_before_uid:, contracts_after_uid:)
View SourceReplaces the initial method by a wrapped version that will run contracts before & after the original method.
Link to this method
.wrap(method_name:, method_type:, class_self:, contracts_before:, contracts_after:)
View SourceLink to this section Constants 1
'_orig_'