Added ruby snippet for checking input arguments.