Class: PdfTempura::Render::Debug::Annotation::Base

Inherits:
Object
  • Object
show all
Includes:
FieldBounds
Defined in:
lib/pdf_tempura/render/debug/annotation/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/pdf_tempura/render/debug/annotation/base.rb', line 7

def initialize(field)
  @field = field
end

Instance Method Details

#render(pdf) ⇒ Object



11
12
13
14
15
# File 'lib/pdf_tempura/render/debug/annotation/base.rb', line 11

def render(pdf)
  set_field_styling(pdf)
  render_boxes(pdf)
  render_text(pdf)
end