August 13, 2011

{RubyTips} How to display " " or ' ' inside your text. (Lesson 3)

Lesson link: Link

There will be times when you want to display " " or ' ' inside your text. You need to put " " after a \ to display it.
EX)
puts " \"Hello\" "
puts ' \'Hello\' '

If you are trying to display ' ' inside " " you can just do
puts " 'Hello' "

Hope this helped.

Sincerely yours, Admin

No comments:

Post a Comment

Free Website templatesFree Flash TemplatesRiad In FezFree joomla templatesSEO Web Design AgencyMusic Videos OnlineFree Wordpress Themes Templatesfreethemes4all.comFree Blog TemplatesLast NewsFree CMS TemplatesFree CSS TemplatesSoccer Videos OnlineFree Wordpress ThemesFree Web Templates