Sha256: c1f4a21630947a4e9de23206828c36bd35c16cb43f498f41ad7024af29d7a103

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

require 'measured'
require 'money'
require 'dry-types'

module Physical
  module Types
    include Dry.Types

    Weight = Types.Instance(::Measured::Weight)
    Length = Types.Instance(::Measured::Length)
    Volume = Types.Instance(::Measured::Volume)
    Density = Types.Instance(::Measured::Density)
    Money = Types.Instance(::Money)

    Dimensions = Types::Strict::Array.of(Length)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
physical-0.4.4 lib/physical/types.rb