module YARD::Templates::Template

def add_options(opts = nil)

def add_options(opts = nil)
  return(yield) if opts.nil? && block_given?
  cur_opts = options if block_given?
  self.options = options.merge(opts)
  if block_given?
    value = yield
    self.options = cur_opts
    value
  end
end