working file comparison ruby class