From d355a9bc7ed327487bb2d8b5fbc16270a6a88f0c Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 17 Apr 2015 14:25:35 +0700 Subject: [PATCH] phases: default names is the snake_cased version of the classname use `nitc --disable-phase list` to see them Signed-off-by: Jean Privat --- src/phase.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phase.nit b/src/phase.nit index 502d817..5f0faf1 100644 --- a/src/phase.nit +++ b/src/phase.nit @@ -222,7 +222,7 @@ abstract class Phase end # By default, the name is the lowercased prefix of the classname - redef fun to_s do return class_name.strip_extension("Phase").to_lower + redef fun to_s do return class_name.strip_extension("Phase").to_snake_case # Is the phase globally disabled? # A disabled phase is not called automatically called by `ToolContext::run_phases` and cie. -- 1.7.9.5