Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
chomp « String « Ruby
Ruby
String
chomp
1.
The chomp and chop Methods
2.
chomp! returns nil without altering the string because there is no record separator at the end of the string
3.
chomp and chomp!