Class: EideticPDF::PdfObjects::IndirectObjectRef
- Inherits:
-
Object
- Object
- EideticPDF::PdfObjects::IndirectObjectRef
- Defined in:
- lib/epdfo.rb
Instance Attribute Summary collapse
-
#indirect_object ⇒ Object
readonly
Returns the value of attribute indirect_object.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(indirect_object) ⇒ IndirectObjectRef
constructor
A new instance of IndirectObjectRef.
- #to_s ⇒ Object
Constructor Details
#initialize(indirect_object) ⇒ IndirectObjectRef
Returns a new instance of IndirectObjectRef.
32 33 34 |
# File 'lib/epdfo.rb', line 32 def initialize(indirect_object) @indirect_object = indirect_object end |
Instance Attribute Details
#indirect_object ⇒ Object (readonly)
Returns the value of attribute indirect_object.
30 31 32 |
# File 'lib/epdfo.rb', line 30 def indirect_object @indirect_object end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 |
# File 'lib/epdfo.rb', line 44 def ==(other) other.respond_to?(:indirect_object) && self.indirect_object == other.indirect_object end |
#eql?(other) ⇒ Boolean
40 41 42 |
# File 'lib/epdfo.rb', line 40 def eql?(other) self.indirect_object.eql?(other.indirect_object) end |
#to_s ⇒ Object
36 37 38 |
# File 'lib/epdfo.rb', line 36 def to_s @indirect_object.reference_string end |