change the way method visibility is check to make it compatible with ruby 2.0.0
version bump 0.2.2