As far as I know that is valid... I've never had a problem. Unless you are referring to something like "technically it is invalid because the ruby spec doesn't cover it and future implementations may not support it" but I don't think that is the case.