Sha256: 592e0f5edcbda954269301ebf64773766b1d8a8bf65f9dbfdafd7be8be6eb748
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
module Squib class Deck # Given inches, returns the number of pixels according to the deck's DPI. # # @example # inches(2.5) # 750 (for default Deck::dpi of 300) # # @param n [Decimal], the number of inches # @return [Decimal] the number of pixels, according to the deck's DPI # @api public def inches(n) @dpi * n end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squib-0.0.6 | lib/squib/api/units.rb |
squib-0.0.5 | lib/squib/api/units.rb |