Class: Origami::PPKLite::Revision

Inherits:
Object
  • Object
show all
Defined in:
lib/origami/extensions/ppklite.rb

Overview

:nodoc;

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adbk) ⇒ Revision

Returns a new instance of Revision.



104
105
106
107
108
109
# File 'lib/origami/extensions/ppklite.rb', line 104

def initialize(adbk)
    @document = adbk
    @body = {}
    @xreftable = nil
    @trailer = nil
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



101
102
103
# File 'lib/origami/extensions/ppklite.rb', line 101

def body
  @body
end

#documentObject

Returns the value of attribute document.



100
101
102
# File 'lib/origami/extensions/ppklite.rb', line 100

def document
  @document
end

#trailerObject

Returns the value of attribute trailer.



102
103
104
# File 'lib/origami/extensions/ppklite.rb', line 102

def trailer
  @trailer
end

#xreftableObject

Returns the value of attribute xreftable.



101
102
103
# File 'lib/origami/extensions/ppklite.rb', line 101

def xreftable
  @xreftable
end

Instance Method Details

#each_object(&b) ⇒ Object



116
117
118
# File 'lib/origami/extensions/ppklite.rb', line 116

def each_object(&b)
    @body.each_value(&b)
end

#objectsObject



120
121
122
# File 'lib/origami/extensions/ppklite.rb', line 120

def objects
    @body.values
end