ruby gated method call speedup