Files
mock-gui/locallibs/ruby-rpm-ffi/lib/rpm/utils.rb
2025-03-15 00:01:18 +03:00

8 lines
186 B
Ruby

module RPM
module Utils
def self.check_type(var, type)
raise(TypeError, "wrong argument type #{var.class} (expected #{type.class})") unless var.is_a?(type)
end
end
end