Class: Drymm::Shapes::Types::Type Abstract
- Defined in:
- lib/drymm/shapes/types.rb
Overview
This class is abstract.
Abstract node branch class for shapes of Dry::Types
Direct Known Subclasses
Any, Array, CoercibleArray, CoercibleHash, Composition, Constrained, Constructor, Enum, Hash, Key, Lax, Map, Nominal, Schema
Class Method Summary collapse
- .compiler(registry = compiler_registry()) ⇒ ::Dry::Logic::RuleCompiler
- .compiler_registry ⇒ ::Dry::Logic::Predicates
- .namespace ⇒ Object
Instance Method Summary collapse
Methods included from Branch
auto_tuple, auto_tuple!, coerce_tuple, retuple
Methods inherited from Node
Methods included from ASTMethods
Methods included from JSONMethods
Class Method Details
.compiler(registry = compiler_registry()) ⇒ ::Dry::Logic::RuleCompiler
26 27 28 |
# File 'lib/drymm/shapes/types.rb', line 26 def self.compiler(registry = compiler_registry()) ::Dry::Types::Compiler.new(registry) end |
.compiler_registry ⇒ ::Dry::Logic::Predicates
21 22 23 |
# File 'lib/drymm/shapes/types.rb', line 21 def self.compiler_registry ::Dry::Types end |
.namespace ⇒ Object
16 17 18 |
# File 'lib/drymm/shapes/types.rb', line 16 def self.namespace Types end |
Instance Method Details
#compile ⇒ Object
30 31 32 |
# File 'lib/drymm/shapes/types.rb', line 30 def compile self.class.compiler.call(to_ast) end |