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
August 13, 2011
Subscribe to:
Post Comments (Atom)
Copyright © Learn Ruby! Step by Step Guides [EasyRuby]. All rights reserved.
Blogger template created by Templates Block in collaboration with Music Videos
Provided By Free Website Templates | Freethemes4all.com | Free Blogger Templates
No comments:
Post a Comment