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
Use Tab key in {} : Escape Characters « String « Ruby
Ruby
String
Escape Characters
Use Tab key in {}
puts %{foo\tbar} # foo bar
Related examples in the same category
1.
Escape Characters list
2.
Escape a single quote
3.
Escape backslash
4.
Put a string with control character
5.
Check the length of a string which has the control character inside
6.
Representing Unprintable Characters
7.
Escape sequence and hex number
8.
Construct a string from hex value
9.
String operation on escape char
10.
Tab key in double quotation
11.
use tab key in %Q{}
12.
Tab key in single quotation mark
13.
tab key in %q{}