Call shop function from string class : chop « String « Ruby






Call shop function from string class


"  Test ".chop 

 

Related examples in the same category

1.chop removes the last character (a quote) with abandon
2.chop removes trailing character or line terminator (\n, \r, or \r\n)