Module: Drymm::TypesRepo Private

Extended by:
Container
Defined in:
lib/drymm/repos/types_repo.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Constant Summary collapse

T =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

method def self.t(member)
  return member if !member.is_a?(String) && !member.is_a?(Symbol)

  resolve(member) { member }
end
Array =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

method def self.array(member)
  t(:ary_wrap).of t(member)
end
Tuple =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

method def self.tuple(*members)
  Dry::Types::Tuple.build_unsplat(members)
end
Constrained =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

method def self.constrained(member, rule)
  Dry::Types::Constrained.new(t(member), rule: rule)
end

Method Summary

Methods included from Container

extended