Oh wait, never mind. You want multiple ports at the same time. Then I recommend validating the input first, and throw an ArgumentError exception if the input is invalid.