Mega Code Archive
Categories
/
Ruby
/
String
The chomp and chop Methods
# The chop (or chop!) method chops off the last character of a string # the chomp (chomp!) method chomps off the record separator ($/) joe = <