Class: Lisp::Format::Directives::EndIteration
- Defined in:
- lib/carat/lisp-format.rb
Overview
Represents the ~} (End iteration) directive. See BeginIteration for an explanation of how these directives work together.
Instance Attribute Summary
Attributes inherited from Directive
Instance Method Summary collapse
-
#initialize(params, modifiers, top, pos) ⇒ EndIteration
constructor
Raise a SyntaxError if
top
is not a BeginIteration.
Methods inherited from Directive
Constructor Details
#initialize(params, modifiers, top, pos) ⇒ EndIteration
Raise a SyntaxError if top
is not a BeginIteration.
1702 1703 1704 1705 1706 1707 |
# File 'lib/carat/lisp-format.rb', line 1702 def initialize(params, modifiers, top, pos) super params, modifiers, top, pos unless top.is_a? BeginIteration raise SynaxError, '~} without matching ~{' end end |