server/lib/deltacloud/validation.rb
def add_params(new)
    # We do not check for duplication on purpose: multiple calls
    # to add_params should be cumulative
    new.each { |p|  @params[p.name] = p }
  end
# Add the parameters in hash +new+ to already existing parameters. If
# +new+ contains a parameter with an already existing name, the old
# definition is clobbered.
Add the parameters in hash +new+ to already existing parameters. If
+new+ contains a parameter with an already existing name, the old
definition is clobbered.
Add the parameters in hash + new + to already existing parameters . If + new + contains a parameter with an already existing name the old definition is clobbered .
def add_params(new)
    new.each { |p|  @params[p.name] = p }
  end
def add_params ( new ) new . each { | p | @params [ p . name ] = p } end
Add the parameters in hash +new+ to already existing parameters.
Add the parameters in hash + new + to already existing parameters .
# We do not check for duplication on purpose: multiple calls # to add_params should be cumulative
new