switch on ruby platform