Sha256: f7b446cf5dd24236d257a88eb87c3b16a5f463b22e990ff306e255b7a3313c9e

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

module Mocktail::Matchers
  class Numeric < Base
    extend T::Sig

    def self.matcher_name
      :numeric
    end

    def initialize
      # Empty initialize is necessary b/c Base default expects an argument
    end

    def match?(actual)
      actual.is_a?(::Numeric)
    end

    def inspect
      "numeric"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocktail-2.0.0 lib/mocktail/matchers/numeric.rb