Integrate methods to Event#render_code