Class: Dry::Validation::Schema::Attr

Inherits:
Key
  • Object
show all
Defined in:
lib/dry/validation/schema/attr.rb

Instance Attribute Summary

Attributes inherited from Key

#parent

Attributes inherited from DSL

#checks, #name, #options, #parent, #rules

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Key

#hash?, #to_ast, #type

Methods inherited from DSL

[], #add_check, #add_rule, #attr, #initialize, #key, #not, #optional, #path, #rule_ast, #to_ast, #to_rule, #with

Constructor Details

This class inherits a constructor from Dry::Validation::Schema::DSL

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dry::Validation::Schema::Key

Class Method Details

.typeObject



5
6
7
# File 'lib/dry/validation/schema/attr.rb', line 5

def self.type
  :attr
end

Instance Method Details

#classObject



9
10
11
# File 'lib/dry/validation/schema/attr.rb', line 9

def class
  Attr
end