8 lines
186 B
8 lines
186 B
2 months ago
|
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
|