Enhanced ruby mode