Module: CabbageDoc::WebHelper

Defined in:
lib/cabbage_doc/web_helper.rb

Instance Method Summary collapse

Instance Method Details

#authObject



21
22
23
# File 'lib/cabbage_doc/web_helper.rb', line 21

def auth
  @_auth ||= Authentication.new(request)
end

#collectionObject



7
8
9
10
11
# File 'lib/cabbage_doc/web_helper.rb', line 7

def collection
  @_collection ||= Collection.instance.tap do |collection|
    collection.load!
  end
end

#configObject



3
4
5
# File 'lib/cabbage_doc/web_helper.rb', line 3

def config
  Configuration.instance
end

#markdownObject



13
14
15
# File 'lib/cabbage_doc/web_helper.rb', line 13

def markdown
  @_markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML.new)
end

#titleObject



17
18
19
# File 'lib/cabbage_doc/web_helper.rb', line 17

def title
  @_title ||= config.title
end