Class: Lisp::Format::Directives::NewLine

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

#pos

Instance Method Summary collapse

Methods inherited from CharacterDirective

#execute

Methods inherited from Directive

#execute, #join

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