Class: Navi::Renderers::Base
- Inherits:
-
Object
- Object
- Navi::Renderers::Base
- Defined in:
- lib/navi/renderers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#controller ⇒ Object
writeonly
Sets the attribute controller.
-
#template ⇒ Object
writeonly
Sets the attribute template.
Instance Method Summary collapse
-
#initialize(context) ⇒ Base
constructor
A new instance of Base.
- #render(collection) ⇒ Object
Constructor Details
#initialize(context) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/navi/renderers/base.rb', line 6 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
4 5 6 |
# File 'lib/navi/renderers/base.rb', line 4 def context @context end |
#controller=(value) ⇒ Object
Sets the attribute controller
4 5 6 |
# File 'lib/navi/renderers/base.rb', line 4 def controller=(value) @controller = value end |
#template=(value) ⇒ Object
Sets the attribute template
4 5 6 |
# File 'lib/navi/renderers/base.rb', line 4 def template=(value) @template = value end |
Instance Method Details
#render(collection) ⇒ Object
10 11 12 |
# File 'lib/navi/renderers/base.rb', line 10 def render(collection) raise NotImplementedError end |