lib/roda/plugins/typecast_params.rb
def convert!(keys=nil, opts=OPTS)
          if keys.is_a?(Hash)
            opts = keys
            keys = nil
          end

          _capture!(:nested_params, opts) do
            if sub = subkey(Array(keys).dup, opts.fetch(:raise, true))
              yield sub
            end
          end
        end
# Captures conversions inside the given block, and returns a hash of all conversions,
# including conversions of subkeys.  +keys+ should be an array of subkeys to access,
# or nil to convert the current object. If +keys+ is given as a hash, it is used as
# the options hash. Options:
#
# :raise :: If set to false, do not raise errors for missing keys
# :skip_missing :: If set to true, does not store values if the key is not
#                  present in the params.
# :symbolize :: Convert any string keys in the resulting hash and for any
#               conversions below
Captures conversions inside the given block, and returns a hash of all conversions,
including conversions of subkeys.  +keys+ should be an array of subkeys to access,
or nil to convert the current object. If +keys+ is given as a hash, it is used as
the options hash. Options.


Captures conversions inside the given block and returns a hash of all conversions including conversions of subkeys . + keys + should be an array of subkeys to access or nil to convert the current object . If + keys + is given as a hash it is used as the options hash . Options .
def convert!(keys=nil, opts=OPTS)
          if keys.is_a?(Hash)
            opts = keys
            keys = nil
          end
          _capture!(:nested_params, opts) do
            if sub = subkey(Array(keys).dup, opts.fetch(:raise, true))
              yield sub
            end
          end
        end
def convert! ( keys = nil , opts = OPTS ) if keys . is_a? ( Hash ) opts = keys keys = nil end _capture! ( :nested_params , opts ) do if sub = subkey ( Array ( keys ) . dup , opts . fetch ( :raise , true ) ) yield sub end end end
Captures conversions inside the given block, and returns a hash of all conversions,
including conversions of subkeys.
Captures conversions inside the given block and returns a hash of all conversions including conversions of subkeys .
keys
opts