Module: ParamsReady::Parameter::ArrayParameterBuilder::ArrayLike

Included in:
ParamsReady::Parameter::ArrayParameterBuilder
Defined in:
lib/params_ready/parameter/array_parameter.rb

Instance Method Summary collapse

Instance Method Details

#prototype(input, name = nil, *args, altn: nil, **opts, &block) ⇒ Object



113
114
115
116
117
118
# 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