Module: Doculab::DocsHelper

Defined in:
app/helpers/doculab/docs_helper.rb

Instance Method Summary collapse

Instance Method Details

#docObject



7
8
9
# File 'app/helpers/doculab/docs_helper.rb', line 7

def doc
  @doc
end

#doc_contentObject



3
4
5
# File 'app/helpers/doculab/docs_helper.rb', line 3

def doc_content
  content_for?(:doc_content) ? yield(:doc_content) : yield
end

#sectionsObject



11
12
13
# File 'app/helpers/doculab/docs_helper.rb', line 11

def sections
  Doculab::TableOfContents.sections
end