Class: NxtSchema::Node::Constructor
- Includes:
- HasSubNodes
- Defined in:
- lib/nxt_schema/node/constructor.rb
Instance Attribute Summary
Attributes included from HasSubNodes
Attributes inherited from Base
#additional_keys_strategy, #all_nodes, #applied, #context, #errors, #input, #level, #locale, #name, #namespace, #options, #parent_node, #root, #schema_errors, #schema_errors_key, #type, #type_system, #validation_errors, #validations, #value
Instance Method Summary collapse
-
#initialize(name:, type: NxtSchema::Types::Constructor(::OpenStruct), parent_node:, **options, &block) ⇒ Constructor
constructor
A new instance of Constructor.
Methods included from HasSubNodes
#dup, #node, #nodes, #required, #schema, #struct
Methods inherited from Schema
Methods inherited from Base
#add_error, #add_validators, #apply_validations, #build_validations, #default, #leaf?, #maybe, #meta, #optional, #parent, #presence, #presence?, #root?, #schema_errors?, #valid?, #validate, #validate_all_nodes, #validate_with, #validation_errors?, #validator, #value_or_default_value
Constructor Details
#initialize(name:, type: NxtSchema::Types::Constructor(::OpenStruct), parent_node:, **options, &block) ⇒ Constructor
Returns a new instance of Constructor.
4 5 6 |
# File 'lib/nxt_schema/node/constructor.rb', line 4 def initialize(name:, type: NxtSchema::Types::Constructor(::OpenStruct), parent_node:, **, &block) super end |