A RubyMotion port of abstract_type