class ActiveSupport::Callbacks::CallTemplate::MethodCall

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

# sig/active_support/callbacks.rbs

class ActiveSupport::Callbacks::CallTemplate::MethodCall
  def expand: (User target, nil value, Proc block) -> untyped
  def initialize: (Symbol method) -> void
  def make_lambda: () -> Proc
end

:nodoc:
or a condition filter).
A future invocation of user-supplied code (either as a callback,

def expand(target, value, block)

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

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

This signature was generated using 1 sample from 1 application.

call stack pollution.
The actual invocation is left up to the caller to minimize

target.send(method, *arguments, &block)

This array can be used as such:

[target, block, method, *arguments]

Returns an array of the form:

input values.
Return the parts needed to make this call, with the given
def expand(target, value, block)
  [target, block, @method_name]
end

def initialize(method)

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

def initialize: (Symbol method) -> void

This signature was generated using 2 samples from 1 application.

def initialize(method)
  @method_name = method
end

def inverted_lambda

def inverted_lambda
  lambda do |target, value, &block|
    !target.send(@method_name, &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 2 samples from 2 applications.

def make_lambda
  lambda do |target, value, &block|
    target.send(@method_name, &block)
  end
end