Sha256: 208e850cda5736a227139a4da434bd11427eb8f0004b0bd65034679512e784fc
Contents?: true
Size: 368 Bytes
Versions: 15
Compression:
Stored size: 368 Bytes
Contents
module Mocktail class MatcherPresentation def respond_to_missing?(name, include_private = false) !!MatcherRegistry.instance.get(name) || super end def method_missing(name, *args, **kwargs, &blk) if (matcher = MatcherRegistry.instance.get(name)) matcher.new(*args, **kwargs, &blk) else super end end end end
Version data entries
15 entries across 15 versions & 1 rubygems