Types de classe Ruby et instructions de cas
Quelle est la différence entre case item.class when MyClass # do something here when Array # do something different here when String # do a third thing end et case item.class when MyClass.class # do something here when Array.class # do something different here when String.class # do a third thing...