lib/squib/args/unit_conversion.rb in squib-0.4.0 vs lib/squib/args/unit_conversion.rb in squib-0.5.0

- old
+ new

@@ -1,10 +1,14 @@ require 'squib/constants' module Squib module Args + # :nodoc: + # @api private module UnitConversion + # :nodoc: + # @api private module_function def parse(arg, dpi=300) case arg.to_s.rstrip when /in$/ #ends with "in" arg.rstrip[0..-2].to_f * dpi \ No newline at end of file