Stats

197 Contributors: 24
2017-05-11
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Strings

Download ruby eBook

Syntax

  • 'A string' // creates a string via single-quoted literal
  • "A string" // creates a string via double-quoted literal
  • String.new("A string")
  • %q(A string) // alternative syntax for creating single quoted strings
  • %Q(A string) // alternative syntax for creating double quoted strings

Related Examples