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


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

def cm
  cm2pt(self)
end

#dmObject


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

def dm
  dm2pt(self)
end

#ftObject


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

def ft
  ft2pt(self)
end

#inObject


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

def in
  in2pt(self)
end

#mObject


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

def m
  m2pt(self)
end

#mmObject


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

def mm
  mm2pt(self)
end

#ptObject


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

def pt
  pt2pt(self)
end

#ydObject


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

def yd
  yd2pt(self)
end