Ruby def formatter