Class: Prawn::Fillform::References
- Inherits:
-
Object
- Object
- Prawn::Fillform::References
- Includes:
- Document::Internals
- Defined in:
- lib/prawn-fillform.rb
Instance Method Summary collapse
- #delete! ⇒ Object
-
#initialize(state) ⇒ References
constructor
A new instance of References.
Constructor Details
#initialize(state) ⇒ References
Returns a new instance of References.
117 118 119 120 121 122 |
# File 'lib/prawn-fillform.rb', line 117 def initialize(state) @state = state @refs = [] @refs_2 = [] collect! end |
Instance Method Details
#delete! ⇒ Object
124 125 126 127 128 129 130 131 |
# File 'lib/prawn-fillform.rb', line 124 def delete! @refs.each do |ref| ref[:annots].delete(ref[:ref]) end @refs_2.each do |ref| ref[:acroform_fields].delete(ref[:field]) end end |