We are looking for instance variables then trying to set them via accessors. Not all instance variables have accessors so be defensive. At this point if you are looking to preserve a state you should have an attr_accessor for it.
Use standard install path for rubymotion include.