Changes

Jump to: navigation, search

Ruby Strings - Creation and Basics

No change in size, 19:48, 27 November 2007
Ruby Here Documents
A ''Here Document'' (or ''heredoc'' as it is more commonly referred to) provides a mechanism for creating free format strings, preserving special characters such as new lines and tabs.
A here document is created by preceding the text with ''<<'' followed by the delimimter delimiter string you wish to use to mark the end of the text. The following example uses the string "DOC" as the delimiter:
<pre>

Navigation menu