Sha256: 3c09390a97ae456aad6c1cc8b9ebe9ba5d98b02fd441b99d3fbd798d2a38c001

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require_relative '../constants'

module Squib
  class Deck

    # DSL method. See http://squib.readthedocs.org
    def inches(n)
      @dpi * n.to_f
    end

    # DSL method. See http://squib.readthedocs.org
    def cm(n)
      @dpi * Squib::INCHES_IN_CM * n.to_f
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.10.0 lib/squib/api/units.rb