class

PDF::Objects::Null

Inherits PDF::Objects::Base < Reference < Object

Represents a PDF null object.

The null object has a type and value that are unequal to those of any other object. There is only one object of type null, denoted by the keyword null.

null = PDF::Objects::Null.new
null.to_pdf # => "null"

Constants

INSTANCE = new

Singleton instance

Constructors

instance

Convenience method to get the singleton

Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

hash(hasher)

See Object#hash(hasher)

to_pdf

Serializes this object to PDF syntax.

Returns the PDF representation as a string.

Source