• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Ruby syntax

 
Rancher
Posts: 589
9
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranches, today is my first day to learn Ruby.

What are the differences between "  " and '  ' ?

Example


As I changed ' ' to " ", I still get the same output.

Refer link : https://www.tutorialspoint.com/ruby/ruby_syntax.htm
 
Marshal
Posts: 3571
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Randy Tong wrote:What are the differences between "  " and '  ' ?


It matters when you want to do interpolation within strings

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ron McLeod wrote:

Randy Tong wrote:What are the differences between "  " and '  ' ?



Hi, I don't know.. , I only know in Java or JavaScript the different is..

 
Randy Tong
Rancher
Posts: 589
9
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

xin yi wrote:Hi, I don't know.. , I only know in Java or JavaScript the different is..


Hi, no problem
 
reply
    Bookmark Topic Watch Topic
  • New Topic