Update endwise, ruby