Module: Voom::Presenters::Namespace
- Included in:
- DSL::Components::Actions::Loads, DSL::Components::Actions::Replaces, DSL::Components::Mixins::Attaches, Helpers::Rails, Helpers::Route
- Defined in:
- lib/voom/presenters/namespace.rb
Instance Method Summary collapse
Instance Method Details
#_expand_namespace_(presenter, namespace) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/voom/presenters/namespace.rb', line 4 def (presenter, namespace) presenter = presenter.to_s return presenter if presenter.split(':').size > 1 return presenter if presenter.split('/').size > 1 namespace.any? ? namespace.join(':')+':'+presenter : presenter end |