Sha256: cbe3b6251849a9b082867387ab2d448c8503ecdb115d1af164f1dab7f7fa57e1
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 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 [Decimal] n, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.0.3 | lib/squib/api/units.rb |