Sha256: eca10b95aa5188d477070ed82f4977f45dcd7ad7becebba1179703940b4b701b
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
# typed: strict module Mocktail class Stubbing < T::Struct extend T::Sig extend T::Generic MethodReturnType = type_member const :demonstration, T.proc.params(matchers: Mocktail::MatcherPresentation).returns(MethodReturnType) const :demo_config, DemoConfig prop :satisfaction_count, Integer, default: 0 const :recording, Call prop :effect, T.nilable(T.proc.params(call: Mocktail::Call).returns(MethodReturnType)) sig { void } def satisfied! self.satisfaction_count += 1 end sig { params(block: T.proc.params(call: Mocktail::Call).returns(MethodReturnType)).void } def with(&block) self.effect = block nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-2.0.0 | lib/mocktail/sorbet/mocktail/value/stubbing.rb |