Sha256: b4f1784af30a6a635eba808bd80f5f2e341c82e1703899d0a84bf924edfaa35d

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

= Quotes

We do not always want verbatum clauses to be interpreted as code.
Sometimes it would more useful to trest them a plan 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 continuation of the current segment. If the next segment
is varbatum 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, as we can now verify:

  @quote_text.assert == "The file will contain\n\nthis text"


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qed-2.2.2 demo/05_quote.rdoc
qed-2.2.1 demo/05_quote.rdoc
qed-2.2.0 demo/05_quote.rdoc