Class: RDaux::Web::Application
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- RDaux::Web::Application
- Defined in:
- lib/rdaux/web/application.rb
Instance Attribute Summary collapse
-
#current_section ⇒ Object
readonly
Returns the value of attribute current_section.
Instance Method Summary collapse
Instance Attribute Details
#current_section ⇒ Object (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
#markdown ⇒ Object
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 |
#site ⇒ Object
27 28 29 |
# File 'lib/rdaux/web/application.rb', line 27 def site settings.site || halt(500) end |