Class: PDF::Impose::Signature
- Inherits:
-
Object
- Object
- PDF::Impose::Signature
- Defined in:
- lib/pdf/impose/signature.rb
Overview
A signature is composed of one or more forms.
Instance Attribute Summary collapse
-
#first ⇒ Object
readonly
Returns the value of attribute first.
-
#last ⇒ Object
readonly
Returns the value of attribute last.
-
#pairs ⇒ Object
readonly
Returns the value of attribute pairs.
Instance Method Summary collapse
-
#initialize(first, last) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(first, last) ⇒ Signature
Returns a new instance of Signature.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pdf/impose/signature.rb', line 7 def initialize(first, last) @first = first @last = last @pairs = [] f, l = first, last while f < l @pairs << [f, l] f += 1 l -= 1 end end |
Instance Attribute Details
#first ⇒ Object (readonly)
Returns the value of attribute first.
5 6 7 |
# File 'lib/pdf/impose/signature.rb', line 5 def first @first end |
#last ⇒ Object (readonly)
Returns the value of attribute last.
5 6 7 |
# File 'lib/pdf/impose/signature.rb', line 5 def last @last end |
#pairs ⇒ Object (readonly)
Returns the value of attribute pairs.
5 6 7 |
# File 'lib/pdf/impose/signature.rb', line 5 def pairs @pairs end |