You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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
|