Sha256: 4e0771a1bc2bd8bf0e77d09d5d51eb28ee5a3db3fcecfa541b78941e8f6b1795
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
Contents
= Quotes We do not always want verbatim clauses to be interpreted as code. Sometimes it would more useful to treat them a plain text to which the preceeding paragraph can make use in a processing rule. For example let say we want to make an example out of the following text... The file will contain this text The use of the ellipsis ('...') tells the processor that the next segment is a plain text continuation of the current segment, rather than example code. If the next segment is varbatim it will be added to the end of the arguments list of any applicable processing rule. Behind the scenes we created a rule to set the text to an instance variable called @quote_text, and we can verify it is so. @quote_text.assert == "The file will contain\n\nthis text" Alternately we can use a colon (':') instead of ellipsis. We can repeat the same statment as above. For example let say we want to make an example out of the following text: The file will contain different text And again we can verify that it did in fact set the @quote_text variable. @quote_text.assert == "The file will contain\n\ndifferent text"
Version data entries
8 entries across 8 versions & 1 rubygems