Module: Hanami::Presenter
- Defined in:
- lib/hanami/presenter.rb
Overview
Presenter pattern implementation
It delegates to the wrapped object the missing method invocations.
The output of concrete and delegated methods is escaped as XSS prevention.
Class Method Summary collapse
-
.included(base) ⇒ Object
private
Inject escape logic into the given class.
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Inject escape logic into the given class.
92 93 94 95 96 |
# File 'lib/hanami/presenter.rb', line 92 def self.included(base) base.class_eval do include ::Hanami::View::Escape::Presentable end end |