Class: Drymm::Shapes::Types::Lax

Inherits:
Type
  • Object
show all
Defined in:
lib/drymm/shapes/types.rb

Overview

See Also:

  • Dry::Types::Lax

Class Method Summary collapse

Methods inherited from Type

#compile, compiler, compiler_registry, namespace

Methods included from Branch

#auto_tuple, #auto_tuple!, #coerce_tuple, #retuple

Methods inherited from Node

type_enum, type_identifier

Methods included from ASTMethods

#compile, #to_ast

Methods included from JSONMethods

#to_json

Class Method Details

.coerce_tuple(type, base) ⇒ Object



116
117
118
# File 'lib/drymm/shapes/types.rb', line 116

def self.coerce_tuple((type, base))
  { type: type, base: base }
end