Module: SwedbankPay::Sidebar
- Defined in:
- lib/sidebar.rb
Overview
A nice sidebar
Class Attribute Summary collapse
-
.pages ⇒ Object
readonly
Returns the value of attribute pages.
Class Method Summary collapse
Class Attribute Details
.pages ⇒ Object (readonly)
Returns the value of attribute pages.
16 17 18 |
# File 'lib/sidebar.rb', line 16 def pages @pages end |
Class Method Details
.post_write ⇒ Object
25 26 27 28 29 30 |
# File 'lib/sidebar.rb', line 25 def post_write @sidebar_renderer = SidebarRenderer.new(@pages) @parser.parse(@pages) SidebarLogger.debug('post_write') @sidebar_renderer.render end |
.pre_render(site) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/sidebar.rb', line 18 def pre_render(site) SidebarLogger.debug('pre_render') @parser = SidebarParser.new(site) @pages = SidebarTreeBuilder.new(@parser.pages) SidebarLogger.debug(@pages.inspect) end |