Class: Dry::Schema::Macros::Schema Private
- Defined in:
- lib/dry/schema/macros/schema.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Macro used to specify a nested schema
Instance Attribute Summary
Attributes inherited from DSL
Instance Method Summary collapse
- #call(*args, &block) ⇒ Object private
Methods inherited from Value
Methods inherited from DSL
#array, #each, #filled, #hash, #schema, #type, #value
Methods inherited from Core
#new, #operation, #to_ast, #to_rule
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dry::Schema::Macros::Value
Instance Method Details
#call(*args, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/dry/schema/macros/schema.rb', line 13 def call(*args, &block) super(*args, &nil) unless args.empty? if block schema = define(*args, &block) trace << schema.to_rule end self end |