Sha256: 9a19f19b2db15202cb2e01d60ef243d9795758022764d60af5f0bcdad4c15fed
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Mocktail class MatcherPresentation extend T::Sig def respond_to_missing?(name, include_private = false) !!MatcherRegistry.instance.get(name) || super end def method_missing(name, *args, **kwargs, &blk) # standard:disable Style/ArgumentsForwarding if (matcher = MatcherRegistry.instance.get(name)) matcher.new(*args, **kwargs, &blk) # standard:disable Style/ArgumentsForwarding else super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-2.0.0 | lib/mocktail/matcher_presentation.rb |