Class: PDF::Writer::Object

Inherits:
Object show all
Defined in:
lib/extensions/pdf-writer/pdf/writer/object.rb

Overview

– PDF::Writer for Ruby.

http://rubyforge.org/projects/ruby-pdf/
Copyright 2003 - 2005 Austin Ziegler.

Licensed under a MIT-style licence. See LICENCE in the main distribution
for full licensing information.

$Id: object.rb 66 2005-05-25 11:19:50Z austin $ ++

Defined Under Namespace

Classes: Action, Annotation, Catalog, Contents, Destination, Encryption, Font, FontDescriptor, FontEncoding, Info, Outline, Outlines, Pages, Procset, ViewerPreferences

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ Object

Returns a new instance of Object.



12
13
14
15
16
# File 'lib/extensions/pdf-writer/pdf/writer/object.rb', line 12

def initialize(parent)
  @parent = parent
  @oid    = @parent.__send__(:generate_id)
  @parent.objects << self
end

Instance Attribute Details

#oidObject (readonly)

Returns the value of attribute oid.



18
19
20
# File 'lib/extensions/pdf-writer/pdf/writer/object.rb', line 18

def oid
  @oid
end