Class: Lisp::Format::Directives::NewLine
- Inherits:
-
CharacterDirective
- Object
- Directive
- CharacterDirective
- Lisp::Format::Directives::NewLine
- Defined in:
- lib/carat/lisp-format.rb
Overview
Represents the ~% (Newline) directive. This outputs a new-line (?n) character a given number of times.
Instance Attribute Summary
Attributes inherited from Directive
Instance Method Summary collapse
-
#initialize(*args) ⇒ NewLine
constructor
Set the output character to a new-line (?n).
Methods inherited from CharacterDirective
Methods inherited from Directive
Constructor Details
#initialize(*args) ⇒ NewLine
Set the output character to a new-line (?n).
1288 1289 1290 |
# File 'lib/carat/lisp-format.rb', line 1288 def initialize(*args) super(*args << ?\n) end |