Class: PlatformosCheck::PlatformosLiquid::Documentation::MarkdownTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/platformos_check/platformos_liquid/documentation/markdown_template.rb

Constant Summary collapse

%r{(\[([^\[]+)\]\((/[^\)]+)\))*}

Instance Method Summary collapse

Instance Method Details

#render(entry) ⇒ Object



9
10
11
12
13
14
# File 'lib/platformos_check/platformos_liquid/documentation/markdown_template.rb', line 9

def render(entry)
  [
    title(entry),
    body(entry)
  ].reject(&:empty?).join("\n")
end