Class: PDF::Writer::Object
- 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 $ ++
Direct Known Subclasses
Complex, External, Action, Annotation, Catalog, Contents, Destination, Encryption, Font, FontDescriptor, FontEncoding, Info, Outline, Outlines, Pages, Procset, ViewerPreferences
Defined Under Namespace
Classes: Action, Annotation, Catalog, Contents, Destination, Encryption, Font, FontDescriptor, FontEncoding, Info, Outline, Outlines, Pages, Procset, ViewerPreferences
Instance Attribute Summary collapse
-
#oid ⇒ Object
readonly
Returns the value of attribute oid.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Object
constructor
A new instance of Object.
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
#oid ⇒ Object (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 |