Use with RubyMotion


I’ve successfully built a RubyMotion app where I can manage documents. Looking at CBLModel, however, it uses declare properties which is something that’s not done in ruby. Are there method calls that can be used to define model attributes explicitly?


I believe so, there should be get/set methods for property declaration. A detail is available for CBLModel here:


These are instance methods that set and get properties without type conversion. I was hoping there might be class-level methods for setting up the attributes with type conversion as if they had been declared as properties. Not sure where to look in source for this, if anyone can provide a reference.