Sha256: bcf834956ebdbd0ce565b51cbdf81a23308e4fba442871e20b93a113c4829603
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module ScreenRecorder # @since 1.0.0.beta10 # # @api private 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
screen-recorder-1.2.0 | lib/screen-recorder/type_checker.rb |