Allow instance and compoent to be set via Ruby.