Class: Prawn::Fillform::Text
- Inherits:
-
Field
- Object
- Field
- Prawn::Fillform::Text
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
Instance Method Details
#align ⇒ Object
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_length ⇒ Object
68
69
70
|
# File 'lib/prawn-fillform.rb', line 68
def max_length
deref(@dictionary[:MaxLen])
end
|
#type ⇒ Object
72
73
74
|
# File 'lib/prawn-fillform.rb', line 72
def type
:text
end
|