Class: Origami::FDF::Revision

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

Overview

:nodoc;

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fdf) ⇒ Revision

Returns a new instance of Revision.



92
93
94
95
96
97
# File 'lib/origami/extensions/fdf.rb', line 92

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



89
90
91
# File 'lib/origami/extensions/fdf.rb', line 89

def body
  @body
end

#documentObject

Returns the value of attribute document.



88
89
90
# File 'lib/origami/extensions/fdf.rb', line 88

def document
  @document
end

#trailerObject

Returns the value of attribute trailer.



90
91
92
# File 'lib/origami/extensions/fdf.rb', line 90

def trailer
  @trailer
end

#xreftableObject

Returns the value of attribute xreftable.



89
90
91
# File 'lib/origami/extensions/fdf.rb', line 89

def xreftable
  @xreftable
end

Instance Method Details

#each_object(&b) ⇒ Object



104
105
106
# File 'lib/origami/extensions/fdf.rb', line 104

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

#objectsObject



108
109
110
# File 'lib/origami/extensions/fdf.rb', line 108

def objects
    @body.values
end