RubyMotion like class