class ActiveSupport::Callbacks::CallTemplate::ObjectCall
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/callbacks.rbs class ActiveSupport::Callbacks::CallTemplate::ObjectCall def initialize: ((ActiveSupport::ExecutionWrapper::RunHook | ActiveSupport::ExecutionWrapper::CompleteHook) target, Symbol method) -> void def make_lambda: () -> Proc end
def expand(target, value, block)
def expand(target, value, block) [@override_target || target, block, @method_name, target] end
def initialize(target, method)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: ((ActiveSupport::ExecutionWrapper::RunHook | ActiveSupport::ExecutionWrapper::CompleteHook) target, Symbol method) -> void
This signature was generated using 12 samples from 1 application.
def initialize(target, method) @override_target = target @method_name = method end
def inverted_lambda
def inverted_lambda lambda do |target, value, &block| !(@override_target || target).send(@method_name, target, &block) end end
def make_lambda
Experimental RBS support (using type sampling data from the type_fusion
project).
def make_lambda: () -> Proc
This signature was generated using 12 samples from 1 application.
def make_lambda lambda do |target, value, &block| (@override_target || target).send(@method_name, target, &block) end end