Class: Numeric

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

Experimental API collapse

Methods included from Prawn::Measurements

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

Instance Method Details

#cmObject


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

def cm
  return cm2pt(self)
end

#dmObject


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

def dm
  return dm2pt(self)
end

#ftObject


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

def ft
  return ft2pt(self)
end

#inObject


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

def in
  return in2pt(self)
end

#mObject


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

def m
  return m2pt(self)
end

#mmObject


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

def mm
  return mm2pt(self)
end

#ptObject


47
48
49
# File 'lib/prawn/measurement_extensions.rb', line 47

def pt
  return pt2pt(self)
end

#ydObject


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

def yd
  return yd2pt(self)
end