Class: HexaPDF::PDFData

Inherits:
Object
  • Object
show all
Defined in:
lib/hexapdf/object.rb

Overview

Internal value object for storing object number, generation number, object value and a possible stream together. Such objects are not used directly but wrapped by Object or one of its subclasses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, oid = nil, gen = nil, stream = nil) ⇒ PDFData

:nodoc:



53
54
55
56
57
58
# File 'lib/hexapdf/object.rb', line 53

def initialize(value, oid = nil, gen = nil, stream = nil) #:nodoc:
  self.value = value
  self.oid = oid
  self.gen = gen
  self.stream = stream
end

Instance Attribute Details

#genObject

:nodoc:



48
49
50
# File 'lib/hexapdf/object.rb', line 48

def gen
  @gen
end

#oidObject

:nodoc:



48
49
50
# File 'lib/hexapdf/object.rb', line 48

def oid
  @oid
end

#streamObject

:nodoc:



51
52
53
# File 'lib/hexapdf/object.rb', line 51

def stream
  @stream
end

#valueObject

:nodoc:



51
52
53
# File 'lib/hexapdf/object.rb', line 51

def value
  @value
end