Ruby utility classes