Sha256: a5a3bd903dcb1032b96a11e17138fae49b8a217f6de6bc4e6dcefe973eab7541

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

require 'measured'
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

6 entries across 6 versions & 1 rubygems

Version Path
physical-0.5.1 lib/physical/types.rb
physical-0.5.0 lib/physical/types.rb
physical-0.4.9 lib/physical/types.rb
physical-0.4.8 lib/physical/types.rb
physical-0.4.7 lib/physical/types.rb
physical-0.4.5 lib/physical/types.rb