Class: Dry::Mutations::Form

Inherits:
Validation::Form
  • Object
show all
Defined in:
lib/dry/mutations/form.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#discardedObject

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/dry/mutations/form.rb', line 13

def discarded?
  discarded.empty?
end