Class: Reform::Form

Inherits:
Contract
  • Object
show all
Extended by:
Property
Includes:
Call, Prepopulate, Validate
Defined in:
lib/reform/form.rb

Defined Under Namespace

Modules: Call, Composition, Dry, Module, Prepopulate, Property, Validate Classes: InvalidOptionsCombinationError, Populator

Constant Summary collapse

Deserialize =

called after populator: form.deserialize(params) as this only included in the typed pipeline, it’s not applied for scalars.

->(input, options) { input.deserialize(options[:fragment]) }
Coercion =
Disposable::Twin::Coercion

Constants included from Validation

Validation::NoValidationLibraryError

Instance Attribute Summary

Attributes included from Validate

#input_params

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Property

property

Methods included from Call

#call

Methods included from Prepopulate

#prepopulate!

Methods included from Validate

#deserialize, #validate

Methods inherited from Contract

properties, property

Methods included from Contract::Readonly

#options_for, #readonly?

Methods included from Validation

included, #valid?

Methods included from Contract::Validate

#custom_errors, #errors, #initialize, #to_result, #validate, #validate!

Class Method Details

.default_nested_classObject



5
6
7
# File 'lib/reform/form.rb', line 5

def self.default_nested_class
  Form
end

Instance Method Details

#skip!Object



113
114
115
# File 'lib/reform/form.rb', line 113

def skip!
  Representable::Pipeline::Stop
end