Class: Sidewalk::TemplateHandlers::RxhpHandler::Delegate
- Inherits:
-
BaseDelegate
- Object
- BaseDelegate
- Sidewalk::TemplateHandlers::RxhpHandler::Delegate
- Includes:
- Rxhp::Html
- Defined in:
- lib/sidewalk/template_handlers/rxhp_handler.rb
Instance Method Summary collapse
-
#initialize(path, template, controller) ⇒ Delegate
constructor
A new instance of Delegate.
- #render ⇒ Object
Constructor Details
#initialize(path, template, controller) ⇒ Delegate
Returns a new instance of Delegate.
21 22 23 24 |
# File 'lib/sidewalk/template_handlers/rxhp_handler.rb', line 21 def initialize path, template, controller @path, @template, @controller = path, template, controller super controller end |
Instance Method Details
#render ⇒ Object
26 27 28 |
# File 'lib/sidewalk/template_handlers/rxhp_handler.rb', line 26 def render eval(@template, binding, @path).render end |