C Extension Style

When writing a C extension that wraps a C struct is it usual to set i
vars on the class and copy the values from the struct (with
rb_iv_set/get) or just write accessor functions?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs