Sha256: d2480e6ed93685afa0add8e75757b82510ff0a8f842e2bc84a6b33091bf94f57

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

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)

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
physical-0.3.3 lib/physical/types.rb
physical-0.3.2 lib/physical/types.rb
physical-0.3.1 lib/physical/types.rb