Method Argument Type Checking
DescriptionAll our methods so far should be changed so they have type safe arguments. Some of them already work. Whenever we use NUM2INT or INT2NUM, that is already assured, but the problem happens when we use our own classes.
PriorityMedium.
PrerequisitesNone.
AssignedNobody
Everything elseAfter this task has been completed, all newly implemented methods afterwards need to have this type of type check as well.
we can use
rb_obj_is_instance_of(VALUE obj, VALUE klass)
can't we? we just have to use the rb_cKlass objects