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: (ConnectedFoldersController target, nil value, Proc block) -> untyped
end

def expand(target, value, block)

Experimental RBS support (using type sampling data from the type_fusion project).

def expand: (ConnectedFoldersController target, nil value, Proc block) -> untyped

This signature was generated using 1 sample from 1 application.

def expand(target, value, block)
  raise ArgumentError unless block
  [target, @override_block || block, :instance_exec, target, block]
end

def initialize(block)

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