Method: Pakyow::Presenter::View.from_view_or_string
- Defined in:
- lib/pakyow/presenter/view.rb
.from_view_or_string(view_or_string) ⇒ 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.
47 48 49 50 51 52 53 54 |
# File 'lib/pakyow/presenter/view.rb', line 47 def from_view_or_string(view_or_string) case view_or_string when View, VersionedView view_or_string else View.new(Support::SafeStringHelpers.ensure_html_safety(view_or_string.to_s)) end end |