Sha256: dbbce6c58d07a610a3da0e0ce231e98d0fa5c8765a9ba71c4dc357e0b8c55b5f
Contents?: true
Size: 364 Bytes
Versions: 5
Compression:
Stored size: 364 Bytes
Contents
module FFMPEG # @since 1.0.0.beta10 module TypeChecker # # Compares the given object's type (class) to the desired object type. # Raises an ArgumentError if the object is not of desired type. # def self.check(obj, klass) raise ArgumentError, "Expected #{klass}, given: #{obj.class}" unless obj.is_a? klass end end end
Version data entries
5 entries across 5 versions & 1 rubygems