Mega Code Archive

 
Categories / Ruby / String
 

Perform greater than and less than comparisons

puts "x" > "y" puts "y" > "x"