Class: Mocktail::Stubbing

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Generic, T::Sig
Defined in:
lib/mocktail/value/stubbing.rb,
lib/mocktail/sorbet/mocktail/value/stubbing.rb

Constant Summary collapse

MethodReturnType =
type_member

Instance Method Summary collapse

Instance Method Details

#satisfied!Object



13
14
15
# File 'lib/mocktail/value/stubbing.rb', line 13

def satisfied!
  self.satisfaction_count += 1
end

#with(&block) ⇒ Object



17
18
19
20
# File 'lib/mocktail/value/stubbing.rb', line 17

def with(&block)
  self.effect = block
  nil
end