Because of aliasing issues users of strings should be aware of the methods that modify the contents of a string object.
Ruby doc string.
Typically methods with names ending in modify their receiver while those without a return a new.
This is used to embed snippets of code like sql or html.
1 9 3 core core api docs for ruby 1 9 3 base classes and modules such as string array symbol etc.
Query sql select from food where healthy true sql you use this syntax to define a heredoc in ruby.
A string object holds and manipulates an arbitrary sequence of bytes typically representing characters.
Ruby on rails sql this modified text is an extract of the original stack overflow documentation created by following contributors and released under cc by sa 3 0.
A string object holds and manipulates an arbitrary sequence of bytes typically representing characters string objects may be created using string new or as literals.
1 9 keywords keywords defined in 1 9.
String objects may be created using new or as literals.
Typically methods with names ending in modify their receiver while those without a return.
Because of aliasing issues users of strings should be aware of the methods that modify the contents of a string object.
A heredoc is a way to define a multiline string while maintaining the original indentation formatting.