Re: Can I access an object attribute dynamically using a var

Found it…

part.send(fieldname)

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