Class: Pdfrb::XrefSection::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/pdfrb/xref_section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#genObject

Returns the value of attribute gen

Returns:

  • (Object)

    the current value of gen



10
11
12
# File 'lib/pdfrb/xref_section.rb', line 10

def gen
  @gen
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



10
11
12
# File 'lib/pdfrb/xref_section.rb', line 10

def index
  @index
end

#obj_stm_oidObject

Returns the value of attribute obj_stm_oid

Returns:

  • (Object)

    the current value of obj_stm_oid



10
11
12
# File 'lib/pdfrb/xref_section.rb', line 10

def obj_stm_oid
  @obj_stm_oid
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



10
11
12
# File 'lib/pdfrb/xref_section.rb', line 10

def offset
  @offset
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



10
11
12
# File 'lib/pdfrb/xref_section.rb', line 10

def type
  @type
end

Instance Method Details

#compressed?Boolean

Returns:

  • (Boolean)


13
# File 'lib/pdfrb/xref_section.rb', line 13

def compressed?; type == :compressed; end

#free?Boolean

Returns:

  • (Boolean)


12
# File 'lib/pdfrb/xref_section.rb', line 12

def free?; type == :free; end

#in_use?Boolean

Returns:

  • (Boolean)


11
# File 'lib/pdfrb/xref_section.rb', line 11

def in_use?; type == :in_use; end