Ruby utilities