Update method && block for ruby