GSL alternative in native Ruby