class ActiveSupport::Callbacks::CallTemplate::InstanceExec2
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/callbacks.rbs class ActiveSupport::Callbacks::CallTemplate::InstanceExec2 def expand: ((GemsController | API::V1::Types::SamplesController | PageController) target, nil value, Proc block) -> untyped def initialize: (Proc block) -> void end
def expand(target, value, block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def expand: ((GemsController | API::V1::Types::SamplesController | PageController) target, nil value, Proc block) -> untyped
This signature was generated using 3 samples from 1 application.
def expand(target, value, block) raise ArgumentError unless block [target, @override_block || block, :instance_exec, target, block] 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 1 sample from 1 application.
def initialize(block) @override_block = block end
def inverted_lambda
def inverted_lambda lambda do |target, value, &block| raise ArgumentError unless block !target.instance_exec(target, block, &@override_block) end end
def make_lambda
def make_lambda lambda do |target, value, &block| raise ArgumentError unless block target.instance_exec(target, block, &@override_block) end end