Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/float.rb

Overview

Extension of the standard Float class with PDF - related units conversions

Instance Method Summary collapse

Instance Method Details

#cmObject

cm2pts



9
10
11
# File 'lib/float.rb', line 9

def cm
  PDF::Writer.cm2pts(self)
end

#inObject

in2pts



14
15
16
# File 'lib/float.rb', line 14

def in
  PDF::Writer.in2pts(self)
end