Method: HexaPDF::Serializer#serialize

Defined in:
lib/hexapdf/serializer.rb

#serialize(obj) ⇒ Object

Returns the serialized form of the given object.

For developers: While the object is serialized, methods can use the instance variable


137
138
139
140
141
142
# File 'lib/hexapdf/serializer.rb', line 137

def serialize(obj)
  @object = obj
  __serialize(obj)
ensure
  @object = nil
end