Sha256: 53f0cf663f4280e939fd23e8b9b5a91416ea7fbfe011c38d09daf4cc8460aebe
Contents?: true
Size: 458 Bytes
Versions: 7
Compression:
Stored size: 458 Bytes
Contents
module Mocktail::Matchers class Numeric < Base def self.matcher_name :numeric end # Change this comment to a descriptive one once this is merged: # https://github.com/rubocop/rubocop/pull/10551 def initialize # standard:disable Style/RedundantInitialize end def match?(actual) [Integer, Float, (BigDecimal if defined?(BigDecimal))].include?(actual.class) end def inspect "numeric" end end end
Version data entries
7 entries across 7 versions & 1 rubygems