Class: Numeric
Instance Method Summary
collapse
#cm2mm, #cm2pt, #dm2mm, #dm2pt, #ft2in, #ft2pt, #in2pt, #m2mm, #m2pt, #mm2pt, #pt2mm, #pt2pt, #yd2in, #yd2pt
Instance Method Details
#cm ⇒ Object
19
20
21
|
# File 'lib/prawn/measurement_extensions.rb', line 19
def cm
return cm2pt(self)
end
|
#dm ⇒ Object
23
24
25
|
# File 'lib/prawn/measurement_extensions.rb', line 23
def dm
return dm2pt(self)
end
|
#ft ⇒ Object
39
40
41
|
# File 'lib/prawn/measurement_extensions.rb', line 39
def ft
return ft2pt(self)
end
|
#in ⇒ Object
31
32
33
|
# File 'lib/prawn/measurement_extensions.rb', line 31
def in
return in2pt(self)
end
|
#m ⇒ Object
27
28
29
|
# File 'lib/prawn/measurement_extensions.rb', line 27
def m
return m2pt(self)
end
|
#mm ⇒ Object
prawns’ basic unit is PostScript-Point 72 points per inch
15
16
17
|
# File 'lib/prawn/measurement_extensions.rb', line 15
def mm
return mm2pt(self)
end
|
#pt ⇒ Object
43
44
45
|
# File 'lib/prawn/measurement_extensions.rb', line 43
def pt
return pt2pt(self)
end
|
#yd ⇒ Object
35
36
37
|
# File 'lib/prawn/measurement_extensions.rb', line 35
def yd
return yd2pt(self)
end
|