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.


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

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body


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

def body
  @body
end

#documentObject

Returns the value of attribute document


98
99
100
# File 'lib/origami/extensions/ppklite.rb', line 98

def document
  @document
end

#trailerObject

Returns the value of attribute trailer


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

def trailer
  @trailer
end

#xreftableObject

Returns the value of attribute xreftable


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

def xreftable
  @xreftable
end

Instance Method Details

#each_object(&b) ⇒ Object


114
115
116
# File 'lib/origami/extensions/ppklite.rb', line 114

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

#objectsObject


118
119
120
# File 'lib/origami/extensions/ppklite.rb', line 118

def objects
    @body.values
end