Module: CabbageDoc::WebHelper
- Defined in:
- lib/cabbage_doc/web_helper.rb
Instance Method Summary collapse
Instance Method Details
#auth ⇒ Object
21 22 23 |
# File 'lib/cabbage_doc/web_helper.rb', line 21 def auth @_auth ||= Authentication.new(request) end |
#collection ⇒ Object
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 |
#config ⇒ Object
3 4 5 |
# File 'lib/cabbage_doc/web_helper.rb', line 3 def config Configuration.instance end |
#markdown ⇒ Object
13 14 15 |
# File 'lib/cabbage_doc/web_helper.rb', line 13 def markdown @_markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML.new) end |
#title ⇒ Object
17 18 19 |
# File 'lib/cabbage_doc/web_helper.rb', line 17 def title @_title ||= config.title end |