Class: Dry::Validation::Rust::Config
- Inherits:
-
Object
- Object
- Dry::Validation::Rust::Config
- Defined in:
- lib/dry/validation/rust/config.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#validate_keys ⇒ Object
Returns the value of attribute validate_keys.
Instance Method Summary collapse
- #dup ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
57 58 59 60 |
# File 'lib/dry/validation/rust/config.rb', line 57 def initialize @validate_keys = false @messages = MessageConfig.new end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
55 56 57 |
# File 'lib/dry/validation/rust/config.rb', line 55 def @messages end |
#validate_keys ⇒ Object
Returns the value of attribute validate_keys.
54 55 56 |
# File 'lib/dry/validation/rust/config.rb', line 54 def validate_keys @validate_keys end |
Instance Method Details
#dup ⇒ Object
66 67 68 69 70 |
# File 'lib/dry/validation/rust/config.rb', line 66 def dup copy = super copy. = .dup copy end |