class ActiveSupport::Callbacks::CallTemplate::InstanceExec0
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/callbacks.rbs class ActiveSupport::Callbacks::CallTemplate::InstanceExec0 def initialize: (Proc block) -> void def make_lambda: () -> Proc end
def expand(target, value, block)
def expand(target, value, block) [target, @override_block, :instance_exec] end
def initialize(block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (Proc block) -> void
This signature was generated using 11 samples from 1 application.
def initialize(block) @override_block = block end
def inverted_lambda
def inverted_lambda lambda do |target, value, &block| !target.instance_exec(&@override_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 11 samples from 1 application.
def make_lambda lambda do |target, value, &block| target.instance_exec(&@override_block) end end