module ParamsReady::Parameter::ArrayParameterBuilder::ArrayLike

Public Instance Methods

prototype(input, name = nil, *args, altn: nil, **opts, &block) click to toggle source
# File lib/params_ready/parameter/array_parameter.rb, line 113
def prototype(input, name = nil, *args, altn: nil, **opts, &block)
  name ||= :element
  altn ||= :elm
  definition = self.class.resolve(input, name, *args, altn: altn, **opts, &block)
  @definition.set_prototype definition
end