Permalink
Browse files

add #pt2pt to Prawn::Measurements

  • Loading branch information...
1 parent 178c66c commit 4e10098b331b61f8f76976616cade6e7fabdd179 Christoph Schiessl committed May 30, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −1 lib/prawn/measurement_extensions.rb
  2. +4 −0 lib/prawn/measurements.rb
@@ -41,6 +41,6 @@ def ft
end
def pt
- return self
+ return pt2pt(self)
end
end
@@ -36,6 +36,10 @@ def yd2in(yd)
# ============================================================================
# PostscriptPoint-converisons
+ def pt2pt(pt)
+ return pt
+ end
+
def in2pt(inch)
return inch * 72
end

0 comments on commit 4e10098

Please sign in to comment.