Class: Pdfrb::Model::Type::OOAdditionalStmsArray

Inherits:
PdfArray show all
Defined in:
lib/pdfrb/model/type/misc_helpers.rb

Overview

/OOAdditionalStms array [name stream]* (PDF 1.5 era object-order additional streams).

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from PdfArray

#<<, #==, #[], #[]=, apply_arlington_definition, arlington_definition, #delete_at, #each, element_field, #empty?, #initialize, #inspect, #length, #push, #to_a

Methods included from Cos::ArlingtonBacked

#arlington_object

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::PdfArray

Instance Method Details

#each_pairObject



191
192
193
194
195
196
197
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 191

def each_pair
  return enum_for(:each_pair) unless block_given?

  (0...size).step(2) do |i|
    yield self[i], self[i + 1]
  end
end