class RSpec::Mocks::Implementation

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

# sig/rspec/mocks/message_expectation.rbs

class RSpec::Mocks::Implementation
  def actions: () -> untyped
  def present?: () -> true
end

@private
any number of sub-implementations.
Represents a configured implementation. Takes into account

def actions

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

def actions: () -> untyped

This signature was generated using 2 samples from 1 application.

def actions
  [initial_action, inner_action, terminal_action].compact
end

def call(*args, &block)

def call(*args, &block)
  actions.map do |action|
    action.call(*args, &block)
  end.last
end

def present?

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

def present?: () -> true

This signature was generated using 1 sample from 1 application.

def present?
  actions.any?
end