class Grape::API::Instance

def nest(*blocks, &block)

of settings stack pushes.
block passed in. Allows for simple 'before' setups
Execute first the provided block, then each of the
def nest(*blocks, &block)
  blocks.compact!
  if blocks.any?
    evaluate_as_instance_with_configuration(block) if block
    blocks.each { |b| evaluate_as_instance_with_configuration(b) }
    reset_validations!
  else
    instance_eval(&block)
  end
end