Method: Origami::Object#document

Defined in:
lib/origami/object.rb

#documentObject

Returns the PDF which the object belongs to.



561
562
563
564
565
566
# File 'lib/origami/object.rb', line 561

def document
    if self.indirect? then @document
    else
        @parent.document unless @parent.nil?
    end
end