class

PDF::Objects::Boolean

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

Represents a PDF boolean object.

PDF booleans are the keywords true and false.

bool = PDF::Objects::Boolean.new(true)
bool.to_pdf # => "true"

Constructors

new(value : Bool)
Source

Instance methods

==(other : self)

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

hash(hasher)

See Object#hash(hasher)

to_b

Allow boolean coercion

Source
to_pdf

Serializes this object to PDF syntax.

Returns the PDF representation as a string.

Source
value
Source