Sha256: 92eae60cc8a9c94c08b20c3958cae4881e5855ec1299215be9b2d5f635504e0b
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
# typed: strict module Mocktail::Matchers class Numeric < Base extend T::Sig sig { returns(Symbol) } def self.matcher_name :numeric end sig { void } def initialize # Empty initialize is necessary b/c Base default expects an argument end sig { params(actual: T.untyped).returns(T::Boolean) } def match?(actual) actual.is_a?(::Numeric) end sig { returns(String) } def inspect "numeric" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-2.0.0 | lib/mocktail/sorbet/mocktail/matchers/numeric.rb |