Class: RDaux::Web::Application

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/rdaux/web/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_sectionObject (readonly)

Returns the value of attribute current_section.



7
8
9
# File 'lib/rdaux/web/application.rb', line 7

def current_section
  @current_section
end

Instance Method Details

#markdownObject



31
32
33
# File 'lib/rdaux/web/application.rb', line 31

def markdown
  settings.markdown || halt(500)
end

#render_markdown(markup) ⇒ Object



35
36
37
# File 'lib/rdaux/web/application.rb', line 35

def render_markdown(markup)
  markdown.render(markup)
end

#siteObject



27
28
29
# File 'lib/rdaux/web/application.rb', line 27

def site
  settings.site || halt(500)
end