Class: Lisp::Format::Directives::EndIteration

Inherits:
Directive show all
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

#pos

Instance Method Summary collapse

Methods inherited from Directive

#execute, #join

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