Sha256: a08c2d56e6790a2962d484b98b96950b583db02960b49c7c33e68b23202b8d72

Contents?: true

Size: 239 Bytes

Versions: 3

Compression:

Stored size: 239 Bytes

Contents

module Doculab
  module DocsHelper
    def doc_content
      content_for?(:doc_content) ? yield(:doc_content) : yield
    end
    
    def doc
      @doc
    end
  
    def sections
      Doculab::TableOfContents.sections
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doculab-0.2.0 app/helpers/doculab/docs_helper.rb
doculab-0.1.1 app/helpers/doculab/docs_helper.rb
doculab-0.1.0 app/helpers/doculab/docs_helper.rb