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.



85
86
87
88
89
# File 'lib/prawn-fillform.rb', line 85

def initialize(state)
  @state = state
  @refs = []
  collect!
end

Instance Method Details

#delete!Object



91
92
93
94
95
# File 'lib/prawn-fillform.rb', line 91

def delete!
  @refs.each do |ref|
    ref[:annots].delete(ref[:ref])
  end
end