Class: Lisp::Format::Directives::NewPage

Inherits:
CharacterDirective show all
Defined in:
lib/carat/lisp-format.rb

Overview

Represents the ~| (Newpage) directive. This outputs a new-page (?f) 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) ⇒ NewPage

Set the output character to a new-page (?f).



1316
1317
1318
# File 'lib/carat/lisp-format.rb', line 1316

def initialize(*args)
  super(*args << ?\f)
end