Module: ParamsReady::Parameter::AbstractStructParameterBuilder::StructLike

Instance Method Summary collapse

Instance Method Details

#add(input, *args, **opts, &block) ⇒ Object



139
140
141
142
# File 'lib/params_ready/parameter/abstract_struct_parameter.rb', line 139

def add(input, *args, **opts, &block)
  definition = self.class.resolve(input, *args, **opts, &block)
  @definition.add_child definition
end