Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/mm2pixcel.rb
Instance Method Summary collapse
Instance Method Details
#mm2pixcel(dpi = 72, inchi_in_mm = 25.4) ⇒ Object
2 3 4 |
# File 'lib/mm2pixcel.rb', line 2 def mm2pixcel(dpi = 72, inchi_in_mm = 25.4) return (self.to_f / inchi_in_mm) * dpi end |