prawn-ruby/pdf-core-0.6.0/lib/pdf/core/object_store.rb
# Adds the given reference to the store and returns the reference object.
# If the object provided is not a PDF::Core::Reference, one is created from the
# arguments provided.
#
Adds the given reference to the store and returns the reference object.
If the object provided is not a PDF::Core::Reference, one is created from the
arguments provided.
Adds the given reference to the store and returns the reference object . If the object provided is not a PDF :: Core :: Reference one is created from the arguments provided .
def push(*args, &block)
        reference = if args.first.is_a?(PDF::Core::Reference)
          args.first
        else
          PDF::Core::Reference.new(*args, &block)
        end
        @objects[reference.identifier] = reference
        @identifiers << reference.identifier
        reference
      end
def push ( * args , & block ) reference = if args . first . is_a? ( PDF :: Core :: Reference ) args . first else PDF :: Core :: Reference . new ( * args , & block ) end @objects [ reference . identifier ] = reference @identifiers << reference . identifier reference end
Adds the given reference to the store and returns the reference object.
Adds the given reference to the store and returns the reference object .
args
<not_specific>
block
<not_specific>