Sha256: 443734644d6dc1a456d7a405eb245bec18e0cf7574896d157d28fbf009de2c1c
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
module ScreenRecorder # @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
screen-recorder-1.0.0 | lib/screen-recorder/type_checker.rb |