Sha256: 98b3644c8ad3d693095532dbbda09ca0efaab61725888d48337ad64cb5160d29

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

require 'measured'
require 'dry-types'

module Physical
  module Types
    include Dry::Types.module

    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

2 entries across 2 versions & 1 rubygems

Version Path
physical-0.3.0 lib/physical/types.rb
physical-0.2.0 lib/physical/types.rb