1.

What are the different ways to compare Ruby string

Answer»

Ruby STRINGS can be compared with three operators: 

  • == operator Returns TRUE or false 
  • EQLoperator Returns true or false 
  • casecmp method Returns 0 if matched or 1 if not matched 


Discussion

No Comment Found