Class: Numeric

Inherits:
Object
  • Object
show all
Includes:
Prawn::Measurements
Defined in:
lib/prawn/measurement_extensions.rb

Instance Method Summary collapse

Methods included from Prawn::Measurements

#cm2mm, #cm2pt, #dm2mm, #dm2pt, #ft2in, #ft2pt, #in2pt, #m2mm, #m2pt, #mm2pt, #pt2mm, #pt2pt, #yd2in, #yd2pt

Instance Method Details

#cmObject



19
20
21
# File 'lib/prawn/measurement_extensions.rb', line 19

def cm
  return cm2pt(self)
end

#dmObject



23
24
25
# File 'lib/prawn/measurement_extensions.rb', line 23

def dm
  return dm2pt(self)
end

#ftObject



39
40
41
# File 'lib/prawn/measurement_extensions.rb', line 39

def ft
  return ft2pt(self)
end

#inObject



31
32
33
# File 'lib/prawn/measurement_extensions.rb', line 31

def in
  return in2pt(self)
end

#mObject



27
28
29
# File 'lib/prawn/measurement_extensions.rb', line 27

def m
  return m2pt(self)
end

#mmObject

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

#ptObject



43
44
45
# File 'lib/prawn/measurement_extensions.rb', line 43

def pt
  return pt2pt(self)
end

#ydObject



35
36
37
# File 'lib/prawn/measurement_extensions.rb', line 35

def yd
  return yd2pt(self)
end