Class: Prawn::Fillform::References

Inherits:
Object
  • Object
show all
Includes:
Document::Internals
Defined in:
lib/prawn-fillform.rb

Instance Method Summary collapse

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