How does the phasing from Ruby work?