Sha256: 3fb1c1a41f116ea37824e3b9bc9ca79a39cc8156cd8970024c9173e72bfa6a1c
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 [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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squib-0.0.4 | lib/squib/api/units.rb |
squib-0.0.2 | lib/squib/api/units.rb |