Sha256: 22a8e68d4db2ac54538e5a67ff2a197f24c0ff2ef2c1788a319db544b385d2e1
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true module Sentry module ArgumentCheckingHelper private def check_argument_type!(argument, *expected_types) unless expected_types.any? { |t| argument.is_a?(t) } raise ArgumentError, "expect the argument to be a #{expected_types.join(' or ')}, got #{argument.class} (#{argument.inspect})" end end end end
Version data entries
4 entries across 4 versions & 2 rubygems