Module: Dry::Mutations::DSL::Blocks
- Defined in:
- lib/dry/mutations/dsl/blocks.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#with_options(**params) {|_self| ... } ⇒ Object
with_options empty: true do |empty| empty.string :bank_reference, nils: true empty.array :invoice_files, nils: true end.
Instance Method Details
#with_options(**params) {|_self| ... } ⇒ Object
with_options empty: true do |empty|
empty.string :bank_reference, nils: true
empty.array :invoice_files, nils: true
end
20 21 22 23 24 |
# File 'lib/dry/mutations/dsl/blocks.rb', line 20 def **params @environs = params yield self if block_given? @environs = nil end |