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
strip both sides : Strip « String « Ruby
Ruby
String
Strip
strip both sides
fear =
" F "
puts fear.strip
Related examples in the same category
1.
Strip from both side in place
2.
Strip the tab and new line characters
3.
strip removes other kinds of whitespace, too:
4.
Managing Whitespace and new line character