refactor type checks and remove unnecessary guards
commit79583aaa426ac2f0967cb84524b6e17d72499cd5
authorEric Wong <normalperson@yhbt.net>
Sat, 25 Dec 2010 07:24:29 +0000 (24 23:24 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 25 Dec 2010 07:32:19 +0000 (24 23:32 -0800)
tree5a3ca18a417eda80a56fe7bf9b2c3b56cee8b15a
parent31dee76d5ef41ec5524c3e4dfb802db4a7a468ef
refactor type checks and remove unnecessary guards

StringValuePtr should already be a sufficient guard.
There are more tests while we're at it, too, and we'll
now raise TypeError instead of ArgumentError when a
POSIX_MQ::Attr is not passed properly.
ext/posix_mq/posix_mq.c
test/test_posix_mq.rb