Class: Prawn::Fillform::Text

Inherits:
Field
  • Object
show all
Defined in:
lib/prawn-fillform.rb

Instance Method Summary collapse

Methods inherited from Field

#default_value, #description, #flags, #height, #initialize, #name, #rect, #value, #width, #x, #y

Constructor Details

This class inherits a constructor from Prawn::Fillform::Field

Instance Method Details

#alignObject



57
58
59
60
61
62
63
64
65
66
# File 'lib/prawn-fillform.rb', line 57

def align
  case deref(@dictionary[:Q])
  when 0
    :left
  when 1
    :center
  when 2
    :right
  end
end

#max_lengthObject



68
69
70
# File 'lib/prawn-fillform.rb', line 68

def max_length
  deref(@dictionary[:MaxLen])
end

#typeObject



72
73
74
# File 'lib/prawn-fillform.rb', line 72

def type
  :text
end