Class: RPDF::PDFInteger
- Inherits:
-
PDFNumeric
- Object
- PDFObject
- PDFNumeric
- RPDF::PDFInteger
- Defined in:
- lib/rpdf/pdfinteger.rb
Overview
Integer Object This is not a real PDF Object, as PDF knows only Numerics.
- PDFRef15 p28
Instance Attribute Summary
Attributes inherited from PDFNumeric
Attributes inherited from PDFObject
#generation_number, #object_number
Instance Method Summary collapse
-
#initialize(value, document = nil) ⇒ PDFInteger
constructor
A new instance of PDFInteger.
Methods inherited from PDFNumeric
Methods inherited from PDFObject
#indirect?, #invalidate, #invalidated?, #to_pdf, #to_ref
Constructor Details
#initialize(value, document = nil) ⇒ PDFInteger
Returns a new instance of PDFInteger.
10 11 12 13 |
# File 'lib/rpdf/pdfinteger.rb', line 10 def initialize(value, document=nil) raise Exception.new("PDFInteger is not an integer") unless value.kind_of?(Integer) super end |