fixed more complex ruby attribute handling