Class: Navigatrix::Renderer
- Inherits:
-
Object
- Object
- Navigatrix::Renderer
- Defined in:
- lib/navigatrix/renderer.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#render_context ⇒ Object
readonly
Returns the value of attribute render_context.
-
#render_options ⇒ Object
readonly
Returns the value of attribute render_options.
Instance Method Summary collapse
-
#initialize(configuration, options) ⇒ Renderer
constructor
A new instance of Renderer.
- #render ⇒ Object
Constructor Details
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
9 10 11 |
# File 'lib/navigatrix/renderer.rb', line 9 def configuration @configuration end |
#render_context ⇒ Object (readonly)
Returns the value of attribute render_context.
9 10 11 |
# File 'lib/navigatrix/renderer.rb', line 9 def render_context @render_context end |
#render_options ⇒ Object (readonly)
Returns the value of attribute render_options.
9 10 11 |
# File 'lib/navigatrix/renderer.rb', line 9 def @render_options end |
Instance Method Details
#render ⇒ Object
17 18 19 |
# File 'lib/navigatrix/renderer.rb', line 17 def render strategy.new(item_collection.items, , ).render end |