Method: YARD::CLI::Display#wrap_layout
- Defined in:
- lib/yard/cli/display.rb
#wrap_layout(contents) ⇒ Object
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 = .merge( :contents => contents, :object => @objects.first, :objects => @objects ) args = [.template, @layout, .format] Templates::Engine.template(*args).run(opts) end |