Module: Swamp::Action::Parameters::ClassMethods
- Defined in:
- lib/swamp/rails_actions/action/parameters.rb
Instance Attribute Summary collapse
-
#param_class ⇒ Object
readonly
Returns the value of attribute param_class.
Instance Method Summary collapse
Instance Attribute Details
#param_class ⇒ Object (readonly)
Returns the value of attribute param_class.
32 33 34 |
# File 'lib/swamp/rails_actions/action/parameters.rb', line 32 def param_class @param_class end |
Instance Method Details
#params(&block) ⇒ Object
34 35 36 37 38 |
# File 'lib/swamp/rails_actions/action/parameters.rb', line 34 def params(&block) @param_class = Dry::Validation.Form do instance_exec(&block) end end |