Method: YARD::CLI::Display#wrap_layout

Defined in:
lib/yard/cli/display.rb

#wrap_layout(contents) ⇒ Object

Since:

  • 0.8.6



33
34
35
36
37
38
39
40
41
42
# File 'lib/yard/cli/display.rb', line 33

def wrap_layout(contents)
  return contents unless @layout
  opts = options.merge(
    :contents => contents,
    :object => @objects.first,
    :objects => @objects
  )
  args = [options.template, @layout, options.format]
  Templates::Engine.template(*args).run(opts)
end