Class: Dry::Mutations::Form
- Inherits:
-
Validation::Form
- Object
- Validation::Form
- Dry::Mutations::Form
- Defined in:
- lib/dry/mutations/form.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#discarded ⇒ Object
predicates(::Dry::Mutations::Predicates).
- #discarded!(value) ⇒ Object
- #discarded? ⇒ Boolean
Instance Method Details
#discarded ⇒ Object
predicates(::Dry::Mutations::Predicates)
9 10 11 |
# File 'lib/dry/mutations/form.rb', line 9 def discarded self.class.instance_variable_get :@discarded end |
#discarded!(value) ⇒ Object
17 18 19 |
# File 'lib/dry/mutations/form.rb', line 17 def discarded! value discarded << value end |
#discarded? ⇒ Boolean
13 14 15 |
# File 'lib/dry/mutations/form.rb', line 13 def discarded? discarded.empty? end |